diff --git a/.zfproject.xml b/.zfproject.xml index 5e3fee1e6..56a8aa68c 100644 --- a/.zfproject.xml +++ b/.zfproject.xml @@ -62,6 +62,7 @@ + @@ -238,6 +239,9 @@ + + + diff --git a/application/configs/classmap-propel-config.php b/application/configs/classmap-propel-config.php index f621cdf8b..5bb6fea81 100644 --- a/application/configs/classmap-propel-config.php +++ b/application/configs/classmap-propel-config.php @@ -1,116 +1,116 @@ 'campcaster/map/CcAccessTableMap.php', - 'CcAccessPeer' => 'campcaster/CcAccessPeer.php', - 'CcAccess' => 'campcaster/CcAccess.php', - 'CcAccessQuery' => 'campcaster/CcAccessQuery.php', - 'BaseCcAccessPeer' => 'campcaster/om/BaseCcAccessPeer.php', - 'BaseCcAccess' => 'campcaster/om/BaseCcAccess.php', - 'BaseCcAccessQuery' => 'campcaster/om/BaseCcAccessQuery.php', - 'CcBackupTableMap' => 'campcaster/map/CcBackupTableMap.php', - 'CcBackupPeer' => 'campcaster/CcBackupPeer.php', - 'CcBackup' => 'campcaster/CcBackup.php', - 'CcBackupQuery' => 'campcaster/CcBackupQuery.php', - 'BaseCcBackupPeer' => 'campcaster/om/BaseCcBackupPeer.php', - 'BaseCcBackup' => 'campcaster/om/BaseCcBackup.php', - 'BaseCcBackupQuery' => 'campcaster/om/BaseCcBackupQuery.php', - 'CcFilesTableMap' => 'campcaster/map/CcFilesTableMap.php', - 'CcFilesPeer' => 'campcaster/CcFilesPeer.php', - 'CcFiles' => 'campcaster/CcFiles.php', - 'CcFilesQuery' => 'campcaster/CcFilesQuery.php', - 'BaseCcFilesPeer' => 'campcaster/om/BaseCcFilesPeer.php', - 'BaseCcFiles' => 'campcaster/om/BaseCcFiles.php', - 'BaseCcFilesQuery' => 'campcaster/om/BaseCcFilesQuery.php', - 'CcPermsTableMap' => 'campcaster/map/CcPermsTableMap.php', - 'CcPermsPeer' => 'campcaster/CcPermsPeer.php', - 'CcPerms' => 'campcaster/CcPerms.php', - 'CcPermsQuery' => 'campcaster/CcPermsQuery.php', - 'BaseCcPermsPeer' => 'campcaster/om/BaseCcPermsPeer.php', - 'BaseCcPerms' => 'campcaster/om/BaseCcPerms.php', - 'BaseCcPermsQuery' => 'campcaster/om/BaseCcPermsQuery.php', - 'CcShowTableMap' => 'campcaster/map/CcShowTableMap.php', - 'CcShowPeer' => 'campcaster/CcShowPeer.php', - 'CcShow' => 'campcaster/CcShow.php', - 'CcShowQuery' => 'campcaster/CcShowQuery.php', - 'BaseCcShowPeer' => 'campcaster/om/BaseCcShowPeer.php', - 'BaseCcShow' => 'campcaster/om/BaseCcShow.php', - 'BaseCcShowQuery' => 'campcaster/om/BaseCcShowQuery.php', - 'CcShowDaysTableMap' => 'campcaster/map/CcShowDaysTableMap.php', - 'CcShowDaysPeer' => 'campcaster/CcShowDaysPeer.php', - 'CcShowDays' => 'campcaster/CcShowDays.php', - 'CcShowDaysQuery' => 'campcaster/CcShowDaysQuery.php', - 'BaseCcShowDaysPeer' => 'campcaster/om/BaseCcShowDaysPeer.php', - 'BaseCcShowDays' => 'campcaster/om/BaseCcShowDays.php', - 'BaseCcShowDaysQuery' => 'campcaster/om/BaseCcShowDaysQuery.php', - 'CcShowHostsTableMap' => 'campcaster/map/CcShowHostsTableMap.php', - 'CcShowHostsPeer' => 'campcaster/CcShowHostsPeer.php', - 'CcShowHosts' => 'campcaster/CcShowHosts.php', - 'CcShowHostsQuery' => 'campcaster/CcShowHostsQuery.php', - 'BaseCcShowHostsPeer' => 'campcaster/om/BaseCcShowHostsPeer.php', - 'BaseCcShowHosts' => 'campcaster/om/BaseCcShowHosts.php', - 'BaseCcShowHostsQuery' => 'campcaster/om/BaseCcShowHostsQuery.php', - 'CcShowScheduleTableMap' => 'campcaster/map/CcShowScheduleTableMap.php', - 'CcShowSchedulePeer' => 'campcaster/CcShowSchedulePeer.php', - 'CcShowSchedule' => 'campcaster/CcShowSchedule.php', - 'CcShowScheduleQuery' => 'campcaster/CcShowScheduleQuery.php', - 'BaseCcShowSchedulePeer' => 'campcaster/om/BaseCcShowSchedulePeer.php', - 'BaseCcShowSchedule' => 'campcaster/om/BaseCcShowSchedule.php', - 'BaseCcShowScheduleQuery' => 'campcaster/om/BaseCcShowScheduleQuery.php', - 'CcPlaylistTableMap' => 'campcaster/map/CcPlaylistTableMap.php', - 'CcPlaylistPeer' => 'campcaster/CcPlaylistPeer.php', - 'CcPlaylist' => 'campcaster/CcPlaylist.php', - 'CcPlaylistQuery' => 'campcaster/CcPlaylistQuery.php', - 'BaseCcPlaylistPeer' => 'campcaster/om/BaseCcPlaylistPeer.php', - 'BaseCcPlaylist' => 'campcaster/om/BaseCcPlaylist.php', - 'BaseCcPlaylistQuery' => 'campcaster/om/BaseCcPlaylistQuery.php', - 'CcPlaylistcontentsTableMap' => 'campcaster/map/CcPlaylistcontentsTableMap.php', - 'CcPlaylistcontentsPeer' => 'campcaster/CcPlaylistcontentsPeer.php', - 'CcPlaylistcontents' => 'campcaster/CcPlaylistcontents.php', - 'CcPlaylistcontentsQuery' => 'campcaster/CcPlaylistcontentsQuery.php', - 'BaseCcPlaylistcontentsPeer' => 'campcaster/om/BaseCcPlaylistcontentsPeer.php', - 'BaseCcPlaylistcontents' => 'campcaster/om/BaseCcPlaylistcontents.php', - 'BaseCcPlaylistcontentsQuery' => 'campcaster/om/BaseCcPlaylistcontentsQuery.php', - 'CcPrefTableMap' => 'campcaster/map/CcPrefTableMap.php', - 'CcPrefPeer' => 'campcaster/CcPrefPeer.php', - 'CcPref' => 'campcaster/CcPref.php', - 'CcPrefQuery' => 'campcaster/CcPrefQuery.php', - 'BaseCcPrefPeer' => 'campcaster/om/BaseCcPrefPeer.php', - 'BaseCcPref' => 'campcaster/om/BaseCcPref.php', - 'BaseCcPrefQuery' => 'campcaster/om/BaseCcPrefQuery.php', - 'CcScheduleTableMap' => 'campcaster/map/CcScheduleTableMap.php', - 'CcSchedulePeer' => 'campcaster/CcSchedulePeer.php', - 'CcSchedule' => 'campcaster/CcSchedule.php', - 'CcScheduleQuery' => 'campcaster/CcScheduleQuery.php', - 'BaseCcSchedulePeer' => 'campcaster/om/BaseCcSchedulePeer.php', - 'BaseCcSchedule' => 'campcaster/om/BaseCcSchedule.php', - 'BaseCcScheduleQuery' => 'campcaster/om/BaseCcScheduleQuery.php', - 'CcSessTableMap' => 'campcaster/map/CcSessTableMap.php', - 'CcSessPeer' => 'campcaster/CcSessPeer.php', - 'CcSess' => 'campcaster/CcSess.php', - 'CcSessQuery' => 'campcaster/CcSessQuery.php', - 'BaseCcSessPeer' => 'campcaster/om/BaseCcSessPeer.php', - 'BaseCcSess' => 'campcaster/om/BaseCcSess.php', - 'BaseCcSessQuery' => 'campcaster/om/BaseCcSessQuery.php', - 'CcSmembTableMap' => 'campcaster/map/CcSmembTableMap.php', - 'CcSmembPeer' => 'campcaster/CcSmembPeer.php', - 'CcSmemb' => 'campcaster/CcSmemb.php', - 'CcSmembQuery' => 'campcaster/CcSmembQuery.php', - 'BaseCcSmembPeer' => 'campcaster/om/BaseCcSmembPeer.php', - 'BaseCcSmemb' => 'campcaster/om/BaseCcSmemb.php', - 'BaseCcSmembQuery' => 'campcaster/om/BaseCcSmembQuery.php', - 'CcSubjsTableMap' => 'campcaster/map/CcSubjsTableMap.php', - 'CcSubjsPeer' => 'campcaster/CcSubjsPeer.php', - 'CcSubjs' => 'campcaster/CcSubjs.php', - 'CcSubjsQuery' => 'campcaster/CcSubjsQuery.php', - 'BaseCcSubjsPeer' => 'campcaster/om/BaseCcSubjsPeer.php', - 'BaseCcSubjs' => 'campcaster/om/BaseCcSubjs.php', - 'BaseCcSubjsQuery' => 'campcaster/om/BaseCcSubjsQuery.php', - 'CcTransTableMap' => 'campcaster/map/CcTransTableMap.php', - 'CcTransPeer' => 'campcaster/CcTransPeer.php', - 'CcTrans' => 'campcaster/CcTrans.php', - 'CcTransQuery' => 'campcaster/CcTransQuery.php', - 'BaseCcTransPeer' => 'campcaster/om/BaseCcTransPeer.php', - 'BaseCcTrans' => 'campcaster/om/BaseCcTrans.php', - 'BaseCcTransQuery' => 'campcaster/om/BaseCcTransQuery.php', + 'CcAccessTableMap' => 'airtime/map/CcAccessTableMap.php', + 'CcAccessPeer' => 'airtime/CcAccessPeer.php', + 'CcAccess' => 'airtime/CcAccess.php', + 'CcAccessQuery' => 'airtime/CcAccessQuery.php', + 'BaseCcAccessPeer' => 'airtime/om/BaseCcAccessPeer.php', + 'BaseCcAccess' => 'airtime/om/BaseCcAccess.php', + 'BaseCcAccessQuery' => 'airtime/om/BaseCcAccessQuery.php', + 'CcBackupTableMap' => 'airtime/map/CcBackupTableMap.php', + 'CcBackupPeer' => 'airtime/CcBackupPeer.php', + 'CcBackup' => 'airtime/CcBackup.php', + 'CcBackupQuery' => 'airtime/CcBackupQuery.php', + 'BaseCcBackupPeer' => 'airtime/om/BaseCcBackupPeer.php', + 'BaseCcBackup' => 'airtime/om/BaseCcBackup.php', + 'BaseCcBackupQuery' => 'airtime/om/BaseCcBackupQuery.php', + 'CcFilesTableMap' => 'airtime/map/CcFilesTableMap.php', + 'CcFilesPeer' => 'airtime/CcFilesPeer.php', + 'CcFiles' => 'airtime/CcFiles.php', + 'CcFilesQuery' => 'airtime/CcFilesQuery.php', + 'BaseCcFilesPeer' => 'airtime/om/BaseCcFilesPeer.php', + 'BaseCcFiles' => 'airtime/om/BaseCcFiles.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', + 'BaseCcPerms' => 'airtime/om/BaseCcPerms.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', + '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', + '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', + 'CcShowScheduleTableMap' => 'airtime/map/CcShowScheduleTableMap.php', + 'CcShowSchedulePeer' => 'airtime/CcShowSchedulePeer.php', + 'CcShowSchedule' => 'airtime/CcShowSchedule.php', + 'CcShowScheduleQuery' => 'airtime/CcShowScheduleQuery.php', + 'BaseCcShowSchedulePeer' => 'airtime/om/BaseCcShowSchedulePeer.php', + 'BaseCcShowSchedule' => 'airtime/om/BaseCcShowSchedule.php', + 'BaseCcShowScheduleQuery' => 'airtime/om/BaseCcShowScheduleQuery.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', + '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', + 'BaseCcPlaylistcontentsQuery' => 'airtime/om/BaseCcPlaylistcontentsQuery.php', + 'CcPrefTableMap' => 'airtime/map/CcPrefTableMap.php', + 'CcPrefPeer' => 'airtime/CcPrefPeer.php', + 'CcPref' => 'airtime/CcPref.php', + 'CcPrefQuery' => 'airtime/CcPrefQuery.php', + 'BaseCcPrefPeer' => 'airtime/om/BaseCcPrefPeer.php', + 'BaseCcPref' => 'airtime/om/BaseCcPref.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', + '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', + 'BaseCcSess' => 'airtime/om/BaseCcSess.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', + 'BaseCcSmemb' => 'airtime/om/BaseCcSmemb.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', + 'BaseCcSubjs' => 'airtime/om/BaseCcSubjs.php', + 'BaseCcSubjsQuery' => 'airtime/om/BaseCcSubjsQuery.php', + 'CcTransTableMap' => 'airtime/map/CcTransTableMap.php', + 'CcTransPeer' => 'airtime/CcTransPeer.php', + 'CcTrans' => 'airtime/CcTrans.php', + 'CcTransQuery' => 'airtime/CcTransQuery.php', + 'BaseCcTransPeer' => 'airtime/om/BaseCcTransPeer.php', + 'BaseCcTrans' => 'airtime/om/BaseCcTrans.php', + 'BaseCcTransQuery' => 'airtime/om/BaseCcTransQuery.php', ); \ No newline at end of file diff --git a/application/configs/propel-config.php b/application/configs/propel-config.php index 831fa4e2a..f8cff95c1 100644 --- a/application/configs/propel-config.php +++ b/application/configs/propel-config.php @@ -1,10 +1,10 @@ array ( - 'campcaster' => + 'airtime' => array ( 'adapter' => 'pgsql', 'connection' => @@ -12,9 +12,9 @@ $conf = array ( 'dsn' => 'pgsql:host=localhost;port=5432;dbname=airtime;user=airtime;password=airtime', ), ), - 'default' => 'campcaster', + 'default' => 'airtime', ), 'generator_version' => '1.5.2', ); $conf['classmap'] = include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classmap-propel-config.php'); -return $conf; +return $conf; \ No newline at end of file diff --git a/application/controllers/ScheduleController.php b/application/controllers/ScheduleController.php index ec1aab5ac..d0fd1e41d 100644 --- a/application/controllers/ScheduleController.php +++ b/application/controllers/ScheduleController.php @@ -20,6 +20,7 @@ class ScheduleController extends Zend_Controller_Action ->addActionContext('schedule-show', 'json') ->addActionContext('clear-show', 'json') ->addActionContext('get-current-playlist', 'json') + ->addActionContext('find-playlists', 'html') ->initContext(); } @@ -125,7 +126,7 @@ class ScheduleController extends Zend_Controller_Action public function deleteShowAction() { $showId = $this->_getParam('showId'); - + $userInfo = Zend_Auth::getInstance()->getStorage()->read(); $show = new Show(new User($userInfo->id, $userInfo->type)); @@ -140,7 +141,7 @@ class ScheduleController extends Zend_Controller_Action public function scheduleShowAction() { $request = $this->getRequest(); - + if($request->isPost()) { $plId = $this->_getParam('plId'); $start = $this->_getParam('start'); @@ -156,7 +157,10 @@ class ScheduleController extends Zend_Controller_Action else { $length = $this->_getParam('length'); - $this->view->playlists = Playlist::findPlaylistMaxLength($length); + $this->view->playlists = Playlist::searchPlaylists($length); + $this->view->dialog = $this->view->render('schedule/schedule-show.phtml'); + + unset($this->view->playlists); } } @@ -185,6 +189,17 @@ class ScheduleController extends Zend_Controller_Action $this->view->entries = Schedule::GetPlayOrderRange(); } + public function findPlaylistsAction() + { + $search = $this->_getParam('search'); + $show_id = $this->_getParam('id'); + $dofw = $this->_getParam('day'); + + $userInfo = Zend_Auth::getInstance()->getStorage()->read(); + $show = new Show(new User($userInfo->id, $userInfo->type), $show_id); + $this->view->playlists = $show->searchPlaylistsForShow($dofw, $search); + + } } @@ -204,4 +219,6 @@ class ScheduleController extends Zend_Controller_Action + + diff --git a/application/models/Playlist.php b/application/models/Playlist.php index cb2700e0b..18ba6d33b 100644 --- a/application/models/Playlist.php +++ b/application/models/Playlist.php @@ -153,9 +153,63 @@ class Playlist { public static function findPlaylistMaxLength($p_length) { - $con = Propel::getConnection("campcaster"); + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME); - $sql = "SELECT * FROM cc_playlist LEFT JOIN cc_playlisttimes USING(id) WHERE length <= '{$p_length}' AND state != 'edited' "; + $sql = "SELECT sub.login, plt.length, pl.state, pl.creator, pl.description, pl.name, pl.id + FROM cc_playlist AS pl LEFT JOIN cc_playlisttimes AS plt USING(id) LEFT JOIN cc_subjs AS sub ON pl.editedby = sub.id + WHERE plt.length <= '{$p_length}' "; + + $r = $con->query($sql); + return $r->fetchAll(); + } + + public static function searchPlaylists($p_length, $search=null) + { + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME); + + $sql = "SELECT sub.login, plt.length, pl.state, pl.creator, pl.description, pl.name, pl.id + FROM cc_playlist AS pl LEFT JOIN cc_playlisttimes AS plt USING(id) LEFT JOIN cc_subjs AS sub ON pl.editedby = sub.id + WHERE plt.length <= '{$p_length}' "; + + + if(!is_null($search)) { + $keywords = explode(" ", $search); + + $categories = array("pl.description", "pl.name", "pl.creator", "sub.login"); + + for($group_id=1; $group_id <= count($keywords); $group_id++) { + + for($row_id=1; $row_id <= count($categories); $row_id++) { + + $md["group_".$group_id]["row_".$row_id]["metadata"] = $categories[$row_id-1]; + $md["group_".$group_id]["row_".$row_id]["match"] = "ILIKE"; + $md["group_".$group_id]["row_".$row_id]["search"] = $keywords[$group_id-1]; + } + } + + $and_cond = array(); + foreach (array_keys($md) as $group) { + + $or_cond = array(); + foreach (array_keys($md[$group]) as $row) { + + $string = $md[$group][$row]["metadata"]; + $string = $string ." ".$md[$group][$row]["match"]; + $string = $string." '%". $md[$group][$row]["search"]."%'"; + + $or_cond[] = $string; + } + + if(count($or_cond) > 0) { + $and_cond[] = "(".join(" OR ", $or_cond).")"; + } + } + + $where_search = " AND ". join(" AND ", $and_cond); + $sql = $sql . $where_search; + } + + //echo $sql; $r = $con->query($sql); return $r->fetchAll(); @@ -486,7 +540,7 @@ class Playlist { $p_cuein = !is_null($p_cuein) ? $p_cuein : '00:00:00.000000'; $p_cueout = !is_null($p_cueout) ? $p_cueout : $length; - $con = Propel::getConnection("campcaster"); + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME); $sql = "SELECT INTERVAL '{$p_cueout}' - INTERVAL '{$p_cuein}'"; $r = $con->query($sql); $p_cliplength = $r->fetchColumn(0); @@ -561,7 +615,7 @@ class Playlist { public function changeFadeInfo($pos, $fadeIn, $fadeOut) { $errArray= array(); - $con = Propel::getConnection("campcaster"); + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME); if(is_null($pos) || $pos < 0 || $pos >= $this->getNextPos()) { $errArray["error"]="Invalid position."; @@ -617,7 +671,7 @@ class Playlist { public function changeClipLength($pos, $cueIn, $cueOut) { $errArray= array(); - $con = Propel::getConnection("campcaster"); + $con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME); if(is_null($cueIn) && is_null($cueOut)) { $errArray["error"]="Cue in and cue out are null."; diff --git a/application/models/Schedule.php b/application/models/Schedule.php index 0ccefd7f6..98ff1b19c 100644 --- a/application/models/Schedule.php +++ b/application/models/Schedule.php @@ -284,7 +284,36 @@ class Schedule { return ($count == '0'); } - public static function getPercentScheduledInRange($s_datetime, $e_datetime) { + public static function getTimeUnScheduledInRange($s_datetime, $e_datetime) { + global $CC_CONFIG, $CC_DBC; + + $sql = "SELECT timestamp '{$s_datetime}' > timestamp '{$e_datetime}'"; + $isNextDay = $CC_DBC->GetOne($sql); + + if($isNextDay === 't') { + $sql = "SELECT date '{$e_datetime}' + interval '1 day'"; + $e_datetime = $CC_DBC->GetOne($sql); + } + + $sql = "SELECT SUM(clip_length) FROM ".$CC_CONFIG["scheduleTable"]." + WHERE (starts >= '{$s_datetime}') + AND (ends <= '{$e_datetime}')"; + + $time = $CC_DBC->GetOne($sql); + + if(is_null($time)) + $time = 0; + + $sql = "SELECT TIMESTAMP '{$e_datetime}' - TIMESTAMP '{$s_datetime}'"; + $length = $CC_DBC->GetOne($sql); + + $sql = "SELECT INTERVAL '{$length}' - INTERVAL '{$time}'"; + $time_left =$CC_DBC->GetOne($sql); + + return $time_left; + } + + public static function getTimeScheduledInRange($s_datetime, $e_datetime) { global $CC_CONFIG, $CC_DBC; $sql = "SELECT timestamp '{$s_datetime}' > timestamp '{$e_datetime}'"; @@ -304,7 +333,14 @@ class Schedule { if(is_null($res)) return 0; - $con = Propel::getConnection("campcaster"); + return $res; + } + + public static function getPercentScheduledInRange($s_datetime, $e_datetime) { + + $time = Schedule::getTimeScheduledInRange($s_datetime, $e_datetime); + + $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME); $sql = "SELECT EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '{$s_datetime}')"; $r = $con->query($sql); @@ -314,7 +350,7 @@ class Schedule { $r = $con->query($sql); $e_epoch = $r->fetchColumn(0); - $sql = "SELECT EXTRACT(EPOCH FROM INTERVAL '{$res}')"; + $sql = "SELECT EXTRACT(EPOCH FROM INTERVAL '{$time}')"; $r = $con->query($sql); $i_epoch = $r->fetchColumn(0); diff --git a/application/models/Shows.php b/application/models/Shows.php index 3f93f7d48..7a748acee 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -14,7 +14,7 @@ class Show { //end dates are non inclusive. public function addShow($data) { - $con = Propel::getConnection("campcaster"); + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME); $sql = "SELECT time '{$data['start_time']}' + INTERVAL '{$data['duration']} hour' "; $r = $con->query($sql); @@ -202,9 +202,19 @@ class Show { } } + public function getTimeUnScheduled($start_date, $end_date, $start_time, $end_time) { + + $start_timestamp = $start_date ." ".$start_time; + $end_timestamp = $end_date ." ".$end_time; + + $time = Schedule::getTimeUnScheduledInRange($start_timestamp, $end_timestamp); + + return $time; + } + public function showHasContent($start_timestamp, $end_timestamp) { - $con = Propel::getConnection("campcaster"); + $con = Propel::getConnection(CcShowPeer::DATABASE_NAME); $sql = "SELECT TIMESTAMP '{$end_timestamp}' - TIMESTAMP '{$start_timestamp}'"; $r = $con->query($sql); $length = $r->fetchColumn(0); @@ -385,4 +395,22 @@ class Show { return $event; } + + public function searchPlaylistsForShow($day, $search){ + global $CC_DBC; + + $sql = "SELECT * FROM cc_show_days WHERE show_id = '{$this->_showId}' AND day = '{$day}'"; + $row = $CC_DBC->GetAll($sql); + $row = $row[0]; + + $start_date = $row["first_show"]; + $end_date = $row["last_show"]; + $start_time = $row["start_time"]; + $end_time = $row["end_time"]; + + $length = $this->getTimeUnScheduled($start_date, $start_date, $start_time, $end_time); + + return Playlist::searchPlaylists($length, $search); + + } } diff --git a/application/models/StoredFile.php b/application/models/StoredFile.php index d35a55800..11f33284e 100644 --- a/application/models/StoredFile.php +++ b/application/models/StoredFile.php @@ -1796,7 +1796,7 @@ class StoredFile { $from = " FROM ((".$plSelect."PL.id FROM ".$CC_CONFIG["playListTable"]." AS PL - LEFT JOIN ".$CC_CONFIG['playListTimeView']." PLT ON PL.id = PLT.id) + LEFT JOIN ".$CC_CONFIG['playListTimeView']." AS PLT USING(id)) UNION diff --git a/application/models/campcaster/CcAccess.php b/application/models/airtime/CcAccess.php similarity index 88% rename from application/models/campcaster/CcAccess.php rename to application/models/airtime/CcAccess.php index e3171bdfa..2b3d4443d 100644 --- a/application/models/campcaster/CcAccess.php +++ b/application/models/airtime/CcAccess.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcAccess extends BaseCcAccess { diff --git a/application/models/campcaster/CcAccessPeer.php b/application/models/airtime/CcAccessPeer.php similarity index 89% rename from application/models/campcaster/CcAccessPeer.php rename to application/models/airtime/CcAccessPeer.php index 7cf59124b..ee70081ba 100644 --- a/application/models/campcaster/CcAccessPeer.php +++ b/application/models/airtime/CcAccessPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcAccessPeer extends BaseCcAccessPeer { diff --git a/application/models/campcaster/CcAccessQuery.php b/application/models/airtime/CcAccessQuery.php similarity index 89% rename from application/models/campcaster/CcAccessQuery.php rename to application/models/airtime/CcAccessQuery.php index 293387b6f..c4c777c47 100644 --- a/application/models/campcaster/CcAccessQuery.php +++ b/application/models/airtime/CcAccessQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcAccessQuery extends BaseCcAccessQuery { diff --git a/application/models/campcaster/CcBackup.php b/application/models/airtime/CcBackup.php similarity index 88% rename from application/models/campcaster/CcBackup.php rename to application/models/airtime/CcBackup.php index 5c1be5dc0..8cd170785 100644 --- a/application/models/campcaster/CcBackup.php +++ b/application/models/airtime/CcBackup.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcBackup extends BaseCcBackup { diff --git a/application/models/campcaster/CcBackupPeer.php b/application/models/airtime/CcBackupPeer.php similarity index 89% rename from application/models/campcaster/CcBackupPeer.php rename to application/models/airtime/CcBackupPeer.php index 2cd867631..4e4d6f656 100644 --- a/application/models/campcaster/CcBackupPeer.php +++ b/application/models/airtime/CcBackupPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcBackupPeer extends BaseCcBackupPeer { diff --git a/application/models/campcaster/CcBackupQuery.php b/application/models/airtime/CcBackupQuery.php similarity index 89% rename from application/models/campcaster/CcBackupQuery.php rename to application/models/airtime/CcBackupQuery.php index c114e43d1..f7026fd2d 100644 --- a/application/models/campcaster/CcBackupQuery.php +++ b/application/models/airtime/CcBackupQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcBackupQuery extends BaseCcBackupQuery { diff --git a/application/models/campcaster/CcFiles.php b/application/models/airtime/CcFiles.php similarity index 100% rename from application/models/campcaster/CcFiles.php rename to application/models/airtime/CcFiles.php diff --git a/application/models/campcaster/CcFilesPeer.php b/application/models/airtime/CcFilesPeer.php similarity index 89% rename from application/models/campcaster/CcFilesPeer.php rename to application/models/airtime/CcFilesPeer.php index 047a8d8bb..0e2fbbe86 100644 --- a/application/models/campcaster/CcFilesPeer.php +++ b/application/models/airtime/CcFilesPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcFilesPeer extends BaseCcFilesPeer { diff --git a/application/models/campcaster/CcFilesQuery.php b/application/models/airtime/CcFilesQuery.php similarity index 89% rename from application/models/campcaster/CcFilesQuery.php rename to application/models/airtime/CcFilesQuery.php index b9a64c011..cace2b474 100644 --- a/application/models/campcaster/CcFilesQuery.php +++ b/application/models/airtime/CcFilesQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcFilesQuery extends BaseCcFilesQuery { diff --git a/application/models/campcaster/CcPerms.php b/application/models/airtime/CcPerms.php similarity index 88% rename from application/models/campcaster/CcPerms.php rename to application/models/airtime/CcPerms.php index f3417bbb5..018bd2f3a 100644 --- a/application/models/campcaster/CcPerms.php +++ b/application/models/airtime/CcPerms.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPerms extends BaseCcPerms { diff --git a/application/models/campcaster/CcPermsPeer.php b/application/models/airtime/CcPermsPeer.php similarity index 89% rename from application/models/campcaster/CcPermsPeer.php rename to application/models/airtime/CcPermsPeer.php index 7e9f6f5db..9b5b51837 100644 --- a/application/models/campcaster/CcPermsPeer.php +++ b/application/models/airtime/CcPermsPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPermsPeer extends BaseCcPermsPeer { diff --git a/application/models/campcaster/CcPermsQuery.php b/application/models/airtime/CcPermsQuery.php similarity index 89% rename from application/models/campcaster/CcPermsQuery.php rename to application/models/airtime/CcPermsQuery.php index 957acf810..96cf4e4de 100644 --- a/application/models/campcaster/CcPermsQuery.php +++ b/application/models/airtime/CcPermsQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPermsQuery extends BaseCcPermsQuery { diff --git a/application/models/campcaster/CcPlaylist.php b/application/models/airtime/CcPlaylist.php similarity index 100% rename from application/models/campcaster/CcPlaylist.php rename to application/models/airtime/CcPlaylist.php diff --git a/application/models/campcaster/CcPlaylistPeer.php b/application/models/airtime/CcPlaylistPeer.php similarity index 89% rename from application/models/campcaster/CcPlaylistPeer.php rename to application/models/airtime/CcPlaylistPeer.php index 097895b10..4f7c82791 100644 --- a/application/models/campcaster/CcPlaylistPeer.php +++ b/application/models/airtime/CcPlaylistPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPlaylistPeer extends BaseCcPlaylistPeer { diff --git a/application/models/campcaster/CcPlaylistQuery.php b/application/models/airtime/CcPlaylistQuery.php similarity index 90% rename from application/models/campcaster/CcPlaylistQuery.php rename to application/models/airtime/CcPlaylistQuery.php index e35e08671..7bfc90407 100644 --- a/application/models/campcaster/CcPlaylistQuery.php +++ b/application/models/airtime/CcPlaylistQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPlaylistQuery extends BaseCcPlaylistQuery { diff --git a/application/models/campcaster/CcPlaylistcontents.php b/application/models/airtime/CcPlaylistcontents.php similarity index 100% rename from application/models/campcaster/CcPlaylistcontents.php rename to application/models/airtime/CcPlaylistcontents.php diff --git a/application/models/campcaster/CcPlaylistcontentsPeer.php b/application/models/airtime/CcPlaylistcontentsPeer.php similarity index 90% rename from application/models/campcaster/CcPlaylistcontentsPeer.php rename to application/models/airtime/CcPlaylistcontentsPeer.php index 5fe6cf288..00210575b 100644 --- a/application/models/campcaster/CcPlaylistcontentsPeer.php +++ b/application/models/airtime/CcPlaylistcontentsPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPlaylistcontentsPeer extends BaseCcPlaylistcontentsPeer { diff --git a/application/models/campcaster/CcPlaylistcontentsQuery.php b/application/models/airtime/CcPlaylistcontentsQuery.php similarity index 90% rename from application/models/campcaster/CcPlaylistcontentsQuery.php rename to application/models/airtime/CcPlaylistcontentsQuery.php index 3e6bde04f..cd63eb96e 100644 --- a/application/models/campcaster/CcPlaylistcontentsQuery.php +++ b/application/models/airtime/CcPlaylistcontentsQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPlaylistcontentsQuery extends BaseCcPlaylistcontentsQuery { diff --git a/application/models/campcaster/CcPref.php b/application/models/airtime/CcPref.php similarity index 88% rename from application/models/campcaster/CcPref.php rename to application/models/airtime/CcPref.php index 1b0e61445..ac95d9076 100644 --- a/application/models/campcaster/CcPref.php +++ b/application/models/airtime/CcPref.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPref extends BaseCcPref { diff --git a/application/models/campcaster/CcPrefPeer.php b/application/models/airtime/CcPrefPeer.php similarity index 89% rename from application/models/campcaster/CcPrefPeer.php rename to application/models/airtime/CcPrefPeer.php index b12d498b6..08594203a 100644 --- a/application/models/campcaster/CcPrefPeer.php +++ b/application/models/airtime/CcPrefPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPrefPeer extends BaseCcPrefPeer { diff --git a/application/models/campcaster/CcPrefQuery.php b/application/models/airtime/CcPrefQuery.php similarity index 89% rename from application/models/campcaster/CcPrefQuery.php rename to application/models/airtime/CcPrefQuery.php index 360b39b09..21dd7332f 100644 --- a/application/models/campcaster/CcPrefQuery.php +++ b/application/models/airtime/CcPrefQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcPrefQuery extends BaseCcPrefQuery { diff --git a/application/models/campcaster/CcSchedule.php b/application/models/airtime/CcSchedule.php similarity index 89% rename from application/models/campcaster/CcSchedule.php rename to application/models/airtime/CcSchedule.php index 106b29852..0193fbbf7 100644 --- a/application/models/campcaster/CcSchedule.php +++ b/application/models/airtime/CcSchedule.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSchedule extends BaseCcSchedule { diff --git a/application/models/campcaster/CcSchedulePeer.php b/application/models/airtime/CcSchedulePeer.php similarity index 89% rename from application/models/campcaster/CcSchedulePeer.php rename to application/models/airtime/CcSchedulePeer.php index 7dacf5b08..869599c7c 100644 --- a/application/models/campcaster/CcSchedulePeer.php +++ b/application/models/airtime/CcSchedulePeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSchedulePeer extends BaseCcSchedulePeer { diff --git a/application/models/campcaster/CcScheduleQuery.php b/application/models/airtime/CcScheduleQuery.php similarity index 90% rename from application/models/campcaster/CcScheduleQuery.php rename to application/models/airtime/CcScheduleQuery.php index 7e50b01ee..9d5f5ccd8 100644 --- a/application/models/campcaster/CcScheduleQuery.php +++ b/application/models/airtime/CcScheduleQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcScheduleQuery extends BaseCcScheduleQuery { diff --git a/application/models/campcaster/CcSess.php b/application/models/airtime/CcSess.php similarity index 88% rename from application/models/campcaster/CcSess.php rename to application/models/airtime/CcSess.php index befc502d0..1a3b7d42b 100644 --- a/application/models/campcaster/CcSess.php +++ b/application/models/airtime/CcSess.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSess extends BaseCcSess { diff --git a/application/models/campcaster/CcSessPeer.php b/application/models/airtime/CcSessPeer.php similarity index 89% rename from application/models/campcaster/CcSessPeer.php rename to application/models/airtime/CcSessPeer.php index f8a37238a..f3fdc4b6b 100644 --- a/application/models/campcaster/CcSessPeer.php +++ b/application/models/airtime/CcSessPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSessPeer extends BaseCcSessPeer { diff --git a/application/models/campcaster/CcSessQuery.php b/application/models/airtime/CcSessQuery.php similarity index 89% rename from application/models/campcaster/CcSessQuery.php rename to application/models/airtime/CcSessQuery.php index 079963a41..73c0adce4 100644 --- a/application/models/campcaster/CcSessQuery.php +++ b/application/models/airtime/CcSessQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSessQuery extends BaseCcSessQuery { diff --git a/application/models/campcaster/CcShow.php b/application/models/airtime/CcShow.php similarity index 88% rename from application/models/campcaster/CcShow.php rename to application/models/airtime/CcShow.php index 82fbd1efd..ae37d289e 100644 --- a/application/models/campcaster/CcShow.php +++ b/application/models/airtime/CcShow.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShow extends BaseCcShow { diff --git a/application/models/campcaster/CcShowDays.php b/application/models/airtime/CcShowDays.php similarity index 89% rename from application/models/campcaster/CcShowDays.php rename to application/models/airtime/CcShowDays.php index 077b52f3d..72df6047e 100644 --- a/application/models/campcaster/CcShowDays.php +++ b/application/models/airtime/CcShowDays.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowDays extends BaseCcShowDays { diff --git a/application/models/campcaster/CcShowDaysPeer.php b/application/models/airtime/CcShowDaysPeer.php similarity index 89% rename from application/models/campcaster/CcShowDaysPeer.php rename to application/models/airtime/CcShowDaysPeer.php index b1ed42b94..d6f5d8f7b 100644 --- a/application/models/campcaster/CcShowDaysPeer.php +++ b/application/models/airtime/CcShowDaysPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowDaysPeer extends BaseCcShowDaysPeer { diff --git a/application/models/campcaster/CcShowDaysQuery.php b/application/models/airtime/CcShowDaysQuery.php similarity index 90% rename from application/models/campcaster/CcShowDaysQuery.php rename to application/models/airtime/CcShowDaysQuery.php index 831eb17d7..f0c561d2e 100644 --- a/application/models/campcaster/CcShowDaysQuery.php +++ b/application/models/airtime/CcShowDaysQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowDaysQuery extends BaseCcShowDaysQuery { diff --git a/application/models/campcaster/CcShowHosts.php b/application/models/airtime/CcShowHosts.php similarity index 89% rename from application/models/campcaster/CcShowHosts.php rename to application/models/airtime/CcShowHosts.php index 3964cc65f..d264bec22 100644 --- a/application/models/campcaster/CcShowHosts.php +++ b/application/models/airtime/CcShowHosts.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowHosts extends BaseCcShowHosts { diff --git a/application/models/campcaster/CcShowHostsPeer.php b/application/models/airtime/CcShowHostsPeer.php similarity index 90% rename from application/models/campcaster/CcShowHostsPeer.php rename to application/models/airtime/CcShowHostsPeer.php index 00482f928..16457d9da 100644 --- a/application/models/campcaster/CcShowHostsPeer.php +++ b/application/models/airtime/CcShowHostsPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowHostsPeer extends BaseCcShowHostsPeer { diff --git a/application/models/campcaster/CcShowHostsQuery.php b/application/models/airtime/CcShowHostsQuery.php similarity index 90% rename from application/models/campcaster/CcShowHostsQuery.php rename to application/models/airtime/CcShowHostsQuery.php index 80ebe5d85..662512dc2 100644 --- a/application/models/campcaster/CcShowHostsQuery.php +++ b/application/models/airtime/CcShowHostsQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowHostsQuery extends BaseCcShowHostsQuery { diff --git a/application/models/campcaster/CcShowPeer.php b/application/models/airtime/CcShowPeer.php similarity index 89% rename from application/models/campcaster/CcShowPeer.php rename to application/models/airtime/CcShowPeer.php index 6b02b53cf..de6c894e8 100644 --- a/application/models/campcaster/CcShowPeer.php +++ b/application/models/airtime/CcShowPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowPeer extends BaseCcShowPeer { diff --git a/application/models/campcaster/CcShowQuery.php b/application/models/airtime/CcShowQuery.php similarity index 89% rename from application/models/campcaster/CcShowQuery.php rename to application/models/airtime/CcShowQuery.php index 42af95eff..056900316 100644 --- a/application/models/campcaster/CcShowQuery.php +++ b/application/models/airtime/CcShowQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowQuery extends BaseCcShowQuery { diff --git a/application/models/campcaster/CcShowSchedule.php b/application/models/airtime/CcShowSchedule.php similarity index 89% rename from application/models/campcaster/CcShowSchedule.php rename to application/models/airtime/CcShowSchedule.php index 198afd766..70247f7d9 100644 --- a/application/models/campcaster/CcShowSchedule.php +++ b/application/models/airtime/CcShowSchedule.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowSchedule extends BaseCcShowSchedule { diff --git a/application/models/campcaster/CcShowSchedulePeer.php b/application/models/airtime/CcShowSchedulePeer.php similarity index 90% rename from application/models/campcaster/CcShowSchedulePeer.php rename to application/models/airtime/CcShowSchedulePeer.php index 5e78c896b..a65e7957f 100644 --- a/application/models/campcaster/CcShowSchedulePeer.php +++ b/application/models/airtime/CcShowSchedulePeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowSchedulePeer extends BaseCcShowSchedulePeer { diff --git a/application/models/campcaster/CcShowScheduleQuery.php b/application/models/airtime/CcShowScheduleQuery.php similarity index 90% rename from application/models/campcaster/CcShowScheduleQuery.php rename to application/models/airtime/CcShowScheduleQuery.php index 5a8ab5d0d..e3f5d2ece 100644 --- a/application/models/campcaster/CcShowScheduleQuery.php +++ b/application/models/airtime/CcShowScheduleQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcShowScheduleQuery extends BaseCcShowScheduleQuery { diff --git a/application/models/campcaster/CcSmemb.php b/application/models/airtime/CcSmemb.php similarity index 88% rename from application/models/campcaster/CcSmemb.php rename to application/models/airtime/CcSmemb.php index 018ebc5c8..b35e91d84 100644 --- a/application/models/campcaster/CcSmemb.php +++ b/application/models/airtime/CcSmemb.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSmemb extends BaseCcSmemb { diff --git a/application/models/campcaster/CcSmembPeer.php b/application/models/airtime/CcSmembPeer.php similarity index 89% rename from application/models/campcaster/CcSmembPeer.php rename to application/models/airtime/CcSmembPeer.php index 248b10313..e5bc29853 100644 --- a/application/models/campcaster/CcSmembPeer.php +++ b/application/models/airtime/CcSmembPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSmembPeer extends BaseCcSmembPeer { diff --git a/application/models/campcaster/CcSmembQuery.php b/application/models/airtime/CcSmembQuery.php similarity index 89% rename from application/models/campcaster/CcSmembQuery.php rename to application/models/airtime/CcSmembQuery.php index b51e5fe28..67a833b5e 100644 --- a/application/models/campcaster/CcSmembQuery.php +++ b/application/models/airtime/CcSmembQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSmembQuery extends BaseCcSmembQuery { diff --git a/application/models/campcaster/CcSubjs.php b/application/models/airtime/CcSubjs.php similarity index 88% rename from application/models/campcaster/CcSubjs.php rename to application/models/airtime/CcSubjs.php index 6d744e651..e5fca5e27 100644 --- a/application/models/campcaster/CcSubjs.php +++ b/application/models/airtime/CcSubjs.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSubjs extends BaseCcSubjs { diff --git a/application/models/campcaster/CcSubjsPeer.php b/application/models/airtime/CcSubjsPeer.php similarity index 89% rename from application/models/campcaster/CcSubjsPeer.php rename to application/models/airtime/CcSubjsPeer.php index d6318855e..c3a3108e5 100644 --- a/application/models/campcaster/CcSubjsPeer.php +++ b/application/models/airtime/CcSubjsPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSubjsPeer extends BaseCcSubjsPeer { diff --git a/application/models/campcaster/CcSubjsQuery.php b/application/models/airtime/CcSubjsQuery.php similarity index 89% rename from application/models/campcaster/CcSubjsQuery.php rename to application/models/airtime/CcSubjsQuery.php index 82189f7f6..0c3d48f20 100644 --- a/application/models/campcaster/CcSubjsQuery.php +++ b/application/models/airtime/CcSubjsQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcSubjsQuery extends BaseCcSubjsQuery { diff --git a/application/models/campcaster/CcTrans.php b/application/models/airtime/CcTrans.php similarity index 88% rename from application/models/campcaster/CcTrans.php rename to application/models/airtime/CcTrans.php index 6de1459bf..b3b1f9350 100644 --- a/application/models/campcaster/CcTrans.php +++ b/application/models/airtime/CcTrans.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcTrans extends BaseCcTrans { diff --git a/application/models/campcaster/CcTransPeer.php b/application/models/airtime/CcTransPeer.php similarity index 89% rename from application/models/campcaster/CcTransPeer.php rename to application/models/airtime/CcTransPeer.php index 0217e09dd..8bd8062ff 100644 --- a/application/models/campcaster/CcTransPeer.php +++ b/application/models/airtime/CcTransPeer.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcTransPeer extends BaseCcTransPeer { diff --git a/application/models/campcaster/CcTransQuery.php b/application/models/airtime/CcTransQuery.php similarity index 89% rename from application/models/campcaster/CcTransQuery.php rename to application/models/airtime/CcTransQuery.php index 11d9ec9af..5c47ffa5a 100644 --- a/application/models/campcaster/CcTransQuery.php +++ b/application/models/airtime/CcTransQuery.php @@ -11,7 +11,7 @@ * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * - * @package propel.generator.campcaster + * @package propel.generator.airtime */ class CcTransQuery extends BaseCcTransQuery { diff --git a/application/models/campcaster/Common.php b/application/models/airtime/Common.php similarity index 100% rename from application/models/campcaster/Common.php rename to application/models/airtime/Common.php diff --git a/application/models/campcaster/map/CcAccessTableMap.php b/application/models/airtime/map/CcAccessTableMap.php similarity index 93% rename from application/models/campcaster/map/CcAccessTableMap.php rename to application/models/airtime/map/CcAccessTableMap.php index 5da2dae21..5b0584f3f 100644 --- a/application/models/campcaster/map/CcAccessTableMap.php +++ b/application/models/airtime/map/CcAccessTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcAccessTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcAccessTableMap'; + const CLASS_NAME = 'airtime.map.CcAccessTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcAccessTableMap extends TableMap { $this->setName('cc_access'); $this->setPhpName('CcAccess'); $this->setClassname('CcAccess'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_access_id_seq'); // columns diff --git a/application/models/campcaster/map/CcBackupTableMap.php b/application/models/airtime/map/CcBackupTableMap.php similarity index 91% rename from application/models/campcaster/map/CcBackupTableMap.php rename to application/models/airtime/map/CcBackupTableMap.php index a2c3f3af7..35ea58159 100644 --- a/application/models/campcaster/map/CcBackupTableMap.php +++ b/application/models/airtime/map/CcBackupTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcBackupTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcBackupTableMap'; + const CLASS_NAME = 'airtime.map.CcBackupTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcBackupTableMap extends TableMap { $this->setName('cc_backup'); $this->setPhpName('CcBackup'); $this->setClassname('CcBackup'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(false); // columns $this->addPrimaryKey('TOKEN', 'Token', 'VARCHAR', true, 64, null); diff --git a/application/models/campcaster/map/CcFilesTableMap.php b/application/models/airtime/map/CcFilesTableMap.php similarity index 97% rename from application/models/campcaster/map/CcFilesTableMap.php rename to application/models/airtime/map/CcFilesTableMap.php index e03aff8e0..8812f013a 100644 --- a/application/models/campcaster/map/CcFilesTableMap.php +++ b/application/models/airtime/map/CcFilesTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcFilesTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcFilesTableMap'; + const CLASS_NAME = 'airtime.map.CcFilesTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcFilesTableMap extends TableMap { $this->setName('cc_files'); $this->setPhpName('CcFiles'); $this->setClassname('CcFiles'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_files_id_seq'); // columns diff --git a/application/models/campcaster/map/CcPermsTableMap.php b/application/models/airtime/map/CcPermsTableMap.php similarity index 91% rename from application/models/campcaster/map/CcPermsTableMap.php rename to application/models/airtime/map/CcPermsTableMap.php index 7a869b2c3..481d17c96 100644 --- a/application/models/campcaster/map/CcPermsTableMap.php +++ b/application/models/airtime/map/CcPermsTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcPermsTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcPermsTableMap'; + const CLASS_NAME = 'airtime.map.CcPermsTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcPermsTableMap extends TableMap { $this->setName('cc_perms'); $this->setPhpName('CcPerms'); $this->setClassname('CcPerms'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(false); // columns $this->addPrimaryKey('PERMID', 'Permid', 'INTEGER', true, null, null); diff --git a/application/models/campcaster/map/CcPlaylistTableMap.php b/application/models/airtime/map/CcPlaylistTableMap.php similarity index 93% rename from application/models/campcaster/map/CcPlaylistTableMap.php rename to application/models/airtime/map/CcPlaylistTableMap.php index cfb6f23de..e4ad1bbd5 100644 --- a/application/models/campcaster/map/CcPlaylistTableMap.php +++ b/application/models/airtime/map/CcPlaylistTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcPlaylistTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcPlaylistTableMap'; + const CLASS_NAME = 'airtime.map.CcPlaylistTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcPlaylistTableMap extends TableMap { $this->setName('cc_playlist'); $this->setPhpName('CcPlaylist'); $this->setClassname('CcPlaylist'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_playlist_id_seq'); // columns diff --git a/application/models/campcaster/map/CcPlaylistcontentsTableMap.php b/application/models/airtime/map/CcPlaylistcontentsTableMap.php similarity index 93% rename from application/models/campcaster/map/CcPlaylistcontentsTableMap.php rename to application/models/airtime/map/CcPlaylistcontentsTableMap.php index 4ce59117e..b00f39ade 100644 --- a/application/models/campcaster/map/CcPlaylistcontentsTableMap.php +++ b/application/models/airtime/map/CcPlaylistcontentsTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcPlaylistcontentsTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcPlaylistcontentsTableMap'; + const CLASS_NAME = 'airtime.map.CcPlaylistcontentsTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcPlaylistcontentsTableMap extends TableMap { $this->setName('cc_playlistcontents'); $this->setPhpName('CcPlaylistcontents'); $this->setClassname('CcPlaylistcontents'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_playlistcontents_id_seq'); // columns diff --git a/application/models/campcaster/map/CcPrefTableMap.php b/application/models/airtime/map/CcPrefTableMap.php similarity index 91% rename from application/models/campcaster/map/CcPrefTableMap.php rename to application/models/airtime/map/CcPrefTableMap.php index 7bc77534e..1d22a122d 100644 --- a/application/models/campcaster/map/CcPrefTableMap.php +++ b/application/models/airtime/map/CcPrefTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcPrefTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcPrefTableMap'; + const CLASS_NAME = 'airtime.map.CcPrefTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcPrefTableMap extends TableMap { $this->setName('cc_pref'); $this->setPhpName('CcPref'); $this->setClassname('CcPref'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_pref_id_seq'); // columns diff --git a/application/models/campcaster/map/CcScheduleTableMap.php b/application/models/airtime/map/CcScheduleTableMap.php similarity index 93% rename from application/models/campcaster/map/CcScheduleTableMap.php rename to application/models/airtime/map/CcScheduleTableMap.php index 65845b813..51e6e03e4 100644 --- a/application/models/campcaster/map/CcScheduleTableMap.php +++ b/application/models/airtime/map/CcScheduleTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcScheduleTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcScheduleTableMap'; + const CLASS_NAME = 'airtime.map.CcScheduleTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcScheduleTableMap extends TableMap { $this->setName('cc_schedule'); $this->setPhpName('CcSchedule'); $this->setClassname('CcSchedule'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(false); // columns $this->addPrimaryKey('ID', 'DbId', 'BIGINT', true, null, null); diff --git a/application/models/campcaster/map/CcSessTableMap.php b/application/models/airtime/map/CcSessTableMap.php similarity index 91% rename from application/models/campcaster/map/CcSessTableMap.php rename to application/models/airtime/map/CcSessTableMap.php index 8e928ab1c..66605b4eb 100644 --- a/application/models/campcaster/map/CcSessTableMap.php +++ b/application/models/airtime/map/CcSessTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcSessTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcSessTableMap'; + const CLASS_NAME = 'airtime.map.CcSessTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcSessTableMap extends TableMap { $this->setName('cc_sess'); $this->setPhpName('CcSess'); $this->setClassname('CcSess'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(false); // columns $this->addPrimaryKey('SESSID', 'Sessid', 'CHAR', true, 32, null); diff --git a/application/models/campcaster/map/CcShowDaysTableMap.php b/application/models/airtime/map/CcShowDaysTableMap.php similarity index 92% rename from application/models/campcaster/map/CcShowDaysTableMap.php rename to application/models/airtime/map/CcShowDaysTableMap.php index 26522b38c..448fcfe3c 100644 --- a/application/models/campcaster/map/CcShowDaysTableMap.php +++ b/application/models/airtime/map/CcShowDaysTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcShowDaysTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcShowDaysTableMap'; + const CLASS_NAME = 'airtime.map.CcShowDaysTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcShowDaysTableMap extends TableMap { $this->setName('cc_show_days'); $this->setPhpName('CcShowDays'); $this->setClassname('CcShowDays'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_show_days_id_seq'); // columns diff --git a/application/models/campcaster/map/CcShowHostsTableMap.php b/application/models/airtime/map/CcShowHostsTableMap.php similarity index 92% rename from application/models/campcaster/map/CcShowHostsTableMap.php rename to application/models/airtime/map/CcShowHostsTableMap.php index c9a170924..c76efdbd3 100644 --- a/application/models/campcaster/map/CcShowHostsTableMap.php +++ b/application/models/airtime/map/CcShowHostsTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcShowHostsTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcShowHostsTableMap'; + const CLASS_NAME = 'airtime.map.CcShowHostsTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcShowHostsTableMap extends TableMap { $this->setName('cc_show_hosts'); $this->setPhpName('CcShowHosts'); $this->setClassname('CcShowHosts'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_show_hosts_id_seq'); // columns diff --git a/application/models/campcaster/map/CcShowScheduleTableMap.php b/application/models/airtime/map/CcShowScheduleTableMap.php similarity index 92% rename from application/models/campcaster/map/CcShowScheduleTableMap.php rename to application/models/airtime/map/CcShowScheduleTableMap.php index cdd6205b7..f295aafe2 100644 --- a/application/models/campcaster/map/CcShowScheduleTableMap.php +++ b/application/models/airtime/map/CcShowScheduleTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcShowScheduleTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcShowScheduleTableMap'; + const CLASS_NAME = 'airtime.map.CcShowScheduleTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcShowScheduleTableMap extends TableMap { $this->setName('cc_show_schedule'); $this->setPhpName('CcShowSchedule'); $this->setClassname('CcShowSchedule'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_show_schedule_id_seq'); // columns diff --git a/application/models/campcaster/map/CcShowTableMap.php b/application/models/airtime/map/CcShowTableMap.php similarity index 92% rename from application/models/campcaster/map/CcShowTableMap.php rename to application/models/airtime/map/CcShowTableMap.php index ebfb0d82e..963a21ba4 100644 --- a/application/models/campcaster/map/CcShowTableMap.php +++ b/application/models/airtime/map/CcShowTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcShowTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcShowTableMap'; + const CLASS_NAME = 'airtime.map.CcShowTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcShowTableMap extends TableMap { $this->setName('cc_show'); $this->setPhpName('CcShow'); $this->setClassname('CcShow'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_show_id_seq'); // columns diff --git a/application/models/campcaster/map/CcSmembTableMap.php b/application/models/airtime/map/CcSmembTableMap.php similarity index 91% rename from application/models/campcaster/map/CcSmembTableMap.php rename to application/models/airtime/map/CcSmembTableMap.php index 5cdb44df5..236cdd016 100644 --- a/application/models/campcaster/map/CcSmembTableMap.php +++ b/application/models/airtime/map/CcSmembTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcSmembTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcSmembTableMap'; + const CLASS_NAME = 'airtime.map.CcSmembTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcSmembTableMap extends TableMap { $this->setName('cc_smemb'); $this->setPhpName('CcSmemb'); $this->setClassname('CcSmemb'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(false); // columns $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); diff --git a/application/models/campcaster/map/CcSubjsTableMap.php b/application/models/airtime/map/CcSubjsTableMap.php similarity index 94% rename from application/models/campcaster/map/CcSubjsTableMap.php rename to application/models/airtime/map/CcSubjsTableMap.php index 6f3bb474d..14b132c41 100644 --- a/application/models/campcaster/map/CcSubjsTableMap.php +++ b/application/models/airtime/map/CcSubjsTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcSubjsTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcSubjsTableMap'; + const CLASS_NAME = 'airtime.map.CcSubjsTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcSubjsTableMap extends TableMap { $this->setName('cc_subjs'); $this->setPhpName('CcSubjs'); $this->setClassname('CcSubjs'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_subjs_id_seq'); // columns diff --git a/application/models/campcaster/map/CcTransTableMap.php b/application/models/airtime/map/CcTransTableMap.php similarity index 95% rename from application/models/campcaster/map/CcTransTableMap.php rename to application/models/airtime/map/CcTransTableMap.php index 9ccb711db..4c5d35e1a 100644 --- a/application/models/campcaster/map/CcTransTableMap.php +++ b/application/models/airtime/map/CcTransTableMap.php @@ -12,14 +12,14 @@ * 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.campcaster.map + * @package propel.generator.airtime.map */ class CcTransTableMap extends TableMap { /** * The (dot-path) name of this class */ - const CLASS_NAME = 'campcaster.map.CcTransTableMap'; + const CLASS_NAME = 'airtime.map.CcTransTableMap'; /** * Initialize the table attributes, columns and validators @@ -34,7 +34,7 @@ class CcTransTableMap extends TableMap { $this->setName('cc_trans'); $this->setPhpName('CcTrans'); $this->setClassname('CcTrans'); - $this->setPackage('campcaster'); + $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_trans_id_seq'); // columns diff --git a/application/models/campcaster/om/BaseCcAccess.php b/application/models/airtime/om/BaseCcAccess.php similarity index 99% rename from application/models/campcaster/om/BaseCcAccess.php rename to application/models/airtime/om/BaseCcAccess.php index 47026e477..8f2de9dca 100644 --- a/application/models/campcaster/om/BaseCcAccess.php +++ b/application/models/airtime/om/BaseCcAccess.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcAccess extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcAccessPeer.php b/application/models/airtime/om/BaseCcAccessPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcAccessPeer.php rename to application/models/airtime/om/BaseCcAccessPeer.php index f6614d330..c14312b14 100644 --- a/application/models/campcaster/om/BaseCcAccessPeer.php +++ b/application/models/airtime/om/BaseCcAccessPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcAccessPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_access'; @@ -20,7 +20,7 @@ abstract class BaseCcAccessPeer { const OM_CLASS = 'CcAccess'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcAccess'; + const CLASS_DEFAULT = 'airtime.CcAccess'; /** the related TableMap class for this table */ const TM_CLASS = 'CcAccessTableMap'; diff --git a/application/models/campcaster/om/BaseCcAccessQuery.php b/application/models/airtime/om/BaseCcAccessQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcAccessQuery.php rename to application/models/airtime/om/BaseCcAccessQuery.php index c1e93dbd7..652550f18 100644 --- a/application/models/campcaster/om/BaseCcAccessQuery.php +++ b/application/models/airtime/om/BaseCcAccessQuery.php @@ -57,7 +57,7 @@ * @method array findByOwner(int $owner) Return CcAccess objects filtered by the owner column * @method array findByTs(string $ts) Return CcAccess objects filtered by the ts column * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcAccessQuery extends ModelCriteria { @@ -69,7 +69,7 @@ abstract class BaseCcAccessQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcAccess', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcAccess', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcBackup.php b/application/models/airtime/om/BaseCcBackup.php similarity index 99% rename from application/models/campcaster/om/BaseCcBackup.php rename to application/models/airtime/om/BaseCcBackup.php index 37d8fb83b..41be024bb 100644 --- a/application/models/campcaster/om/BaseCcBackup.php +++ b/application/models/airtime/om/BaseCcBackup.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcBackup extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcBackupPeer.php b/application/models/airtime/om/BaseCcBackupPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcBackupPeer.php rename to application/models/airtime/om/BaseCcBackupPeer.php index b8c6a3066..304acc302 100644 --- a/application/models/campcaster/om/BaseCcBackupPeer.php +++ b/application/models/airtime/om/BaseCcBackupPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcBackupPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_backup'; @@ -20,7 +20,7 @@ abstract class BaseCcBackupPeer { const OM_CLASS = 'CcBackup'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcBackup'; + const CLASS_DEFAULT = 'airtime.CcBackup'; /** the related TableMap class for this table */ const TM_CLASS = 'CcBackupTableMap'; diff --git a/application/models/campcaster/om/BaseCcBackupQuery.php b/application/models/airtime/om/BaseCcBackupQuery.php similarity index 98% rename from application/models/campcaster/om/BaseCcBackupQuery.php rename to application/models/airtime/om/BaseCcBackupQuery.php index f74f068bf..2e80333fb 100644 --- a/application/models/campcaster/om/BaseCcBackupQuery.php +++ b/application/models/airtime/om/BaseCcBackupQuery.php @@ -37,7 +37,7 @@ * @method array findByFromtime(string $fromtime) Return CcBackup objects filtered by the fromtime column * @method array findByTotime(string $totime) Return CcBackup objects filtered by the totime column * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcBackupQuery extends ModelCriteria { @@ -49,7 +49,7 @@ abstract class BaseCcBackupQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcBackup', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcBackup', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcFiles.php b/application/models/airtime/om/BaseCcFiles.php similarity index 99% rename from application/models/campcaster/om/BaseCcFiles.php rename to application/models/airtime/om/BaseCcFiles.php index 509ef9403..68d3b0c58 100644 --- a/application/models/campcaster/om/BaseCcFiles.php +++ b/application/models/airtime/om/BaseCcFiles.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcFiles extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcFilesPeer.php b/application/models/airtime/om/BaseCcFilesPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcFilesPeer.php rename to application/models/airtime/om/BaseCcFilesPeer.php index 2f62a743d..04fd0b423 100644 --- a/application/models/campcaster/om/BaseCcFilesPeer.php +++ b/application/models/airtime/om/BaseCcFilesPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcFilesPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_files'; @@ -20,7 +20,7 @@ abstract class BaseCcFilesPeer { const OM_CLASS = 'CcFiles'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcFiles'; + const CLASS_DEFAULT = 'airtime.CcFiles'; /** the related TableMap class for this table */ const TM_CLASS = 'CcFilesTableMap'; diff --git a/application/models/campcaster/om/BaseCcFilesQuery.php b/application/models/airtime/om/BaseCcFilesQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcFilesQuery.php rename to application/models/airtime/om/BaseCcFilesQuery.php index 4e380faff..279128d3b 100644 --- a/application/models/campcaster/om/BaseCcFilesQuery.php +++ b/application/models/airtime/om/BaseCcFilesQuery.php @@ -241,7 +241,7 @@ * @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 * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcFilesQuery extends ModelCriteria { @@ -253,7 +253,7 @@ abstract class BaseCcFilesQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcFiles', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcFiles', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcPerms.php b/application/models/airtime/om/BaseCcPerms.php similarity index 99% rename from application/models/campcaster/om/BaseCcPerms.php rename to application/models/airtime/om/BaseCcPerms.php index 632dc2951..a86413fc1 100644 --- a/application/models/campcaster/om/BaseCcPerms.php +++ b/application/models/airtime/om/BaseCcPerms.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPerms extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcPermsPeer.php b/application/models/airtime/om/BaseCcPermsPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcPermsPeer.php rename to application/models/airtime/om/BaseCcPermsPeer.php index 2bfdaeb0e..4bd4c07ea 100644 --- a/application/models/campcaster/om/BaseCcPermsPeer.php +++ b/application/models/airtime/om/BaseCcPermsPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPermsPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_perms'; @@ -20,7 +20,7 @@ abstract class BaseCcPermsPeer { const OM_CLASS = 'CcPerms'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcPerms'; + const CLASS_DEFAULT = 'airtime.CcPerms'; /** the related TableMap class for this table */ const TM_CLASS = 'CcPermsTableMap'; diff --git a/application/models/campcaster/om/BaseCcPermsQuery.php b/application/models/airtime/om/BaseCcPermsQuery.php similarity index 98% rename from application/models/campcaster/om/BaseCcPermsQuery.php rename to application/models/airtime/om/BaseCcPermsQuery.php index 3e7433ded..5866aa488 100644 --- a/application/models/campcaster/om/BaseCcPermsQuery.php +++ b/application/models/airtime/om/BaseCcPermsQuery.php @@ -41,7 +41,7 @@ * @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.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPermsQuery extends ModelCriteria { @@ -53,7 +53,7 @@ abstract class BaseCcPermsQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcPerms', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcPerms', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcPlaylist.php b/application/models/airtime/om/BaseCcPlaylist.php similarity index 99% rename from application/models/campcaster/om/BaseCcPlaylist.php rename to application/models/airtime/om/BaseCcPlaylist.php index 87eed9c5f..222c1c6f4 100644 --- a/application/models/campcaster/om/BaseCcPlaylist.php +++ b/application/models/airtime/om/BaseCcPlaylist.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPlaylist extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcPlaylistPeer.php b/application/models/airtime/om/BaseCcPlaylistPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcPlaylistPeer.php rename to application/models/airtime/om/BaseCcPlaylistPeer.php index 04ff4a612..0e338bc39 100644 --- a/application/models/campcaster/om/BaseCcPlaylistPeer.php +++ b/application/models/airtime/om/BaseCcPlaylistPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPlaylistPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_playlist'; @@ -20,7 +20,7 @@ abstract class BaseCcPlaylistPeer { const OM_CLASS = 'CcPlaylist'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcPlaylist'; + const CLASS_DEFAULT = 'airtime.CcPlaylist'; /** the related TableMap class for this table */ const TM_CLASS = 'CcPlaylistTableMap'; diff --git a/application/models/campcaster/om/BaseCcPlaylistQuery.php b/application/models/airtime/om/BaseCcPlaylistQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcPlaylistQuery.php rename to application/models/airtime/om/BaseCcPlaylistQuery.php index a3b0b88a2..0ab594b7a 100644 --- a/application/models/campcaster/om/BaseCcPlaylistQuery.php +++ b/application/models/airtime/om/BaseCcPlaylistQuery.php @@ -57,7 +57,7 @@ * @method array findByDbCreator(string $creator) Return CcPlaylist objects filtered by the creator column * @method array findByDbDescription(string $description) Return CcPlaylist objects filtered by the description column * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPlaylistQuery extends ModelCriteria { @@ -69,7 +69,7 @@ abstract class BaseCcPlaylistQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcPlaylist', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcPlaylist', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcPlaylistcontents.php b/application/models/airtime/om/BaseCcPlaylistcontents.php similarity index 99% rename from application/models/campcaster/om/BaseCcPlaylistcontents.php rename to application/models/airtime/om/BaseCcPlaylistcontents.php index 53ff5fe8d..0118d5038 100644 --- a/application/models/campcaster/om/BaseCcPlaylistcontents.php +++ b/application/models/airtime/om/BaseCcPlaylistcontents.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPlaylistcontents extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcPlaylistcontentsPeer.php b/application/models/airtime/om/BaseCcPlaylistcontentsPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcPlaylistcontentsPeer.php rename to application/models/airtime/om/BaseCcPlaylistcontentsPeer.php index 1d448bd34..0bb899b67 100644 --- a/application/models/campcaster/om/BaseCcPlaylistcontentsPeer.php +++ b/application/models/airtime/om/BaseCcPlaylistcontentsPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPlaylistcontentsPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_playlistcontents'; @@ -20,7 +20,7 @@ abstract class BaseCcPlaylistcontentsPeer { const OM_CLASS = 'CcPlaylistcontents'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcPlaylistcontents'; + const CLASS_DEFAULT = 'airtime.CcPlaylistcontents'; /** the related TableMap class for this table */ const TM_CLASS = 'CcPlaylistcontentsTableMap'; diff --git a/application/models/campcaster/om/BaseCcPlaylistcontentsQuery.php b/application/models/airtime/om/BaseCcPlaylistcontentsQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcPlaylistcontentsQuery.php rename to application/models/airtime/om/BaseCcPlaylistcontentsQuery.php index 183fa9a4f..6c717c6c6 100644 --- a/application/models/campcaster/om/BaseCcPlaylistcontentsQuery.php +++ b/application/models/airtime/om/BaseCcPlaylistcontentsQuery.php @@ -61,7 +61,7 @@ * @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.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPlaylistcontentsQuery extends ModelCriteria { @@ -73,7 +73,7 @@ abstract class BaseCcPlaylistcontentsQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcPlaylistcontents', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcPlaylistcontents', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcPref.php b/application/models/airtime/om/BaseCcPref.php similarity index 99% rename from application/models/campcaster/om/BaseCcPref.php rename to application/models/airtime/om/BaseCcPref.php index 83e33529d..b1d9a307e 100644 --- a/application/models/campcaster/om/BaseCcPref.php +++ b/application/models/airtime/om/BaseCcPref.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPref extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcPrefPeer.php b/application/models/airtime/om/BaseCcPrefPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcPrefPeer.php rename to application/models/airtime/om/BaseCcPrefPeer.php index 8356fed9a..cb6345eac 100644 --- a/application/models/campcaster/om/BaseCcPrefPeer.php +++ b/application/models/airtime/om/BaseCcPrefPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPrefPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_pref'; @@ -20,7 +20,7 @@ abstract class BaseCcPrefPeer { const OM_CLASS = 'CcPref'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcPref'; + const CLASS_DEFAULT = 'airtime.CcPref'; /** the related TableMap class for this table */ const TM_CLASS = 'CcPrefTableMap'; diff --git a/application/models/campcaster/om/BaseCcPrefQuery.php b/application/models/airtime/om/BaseCcPrefQuery.php similarity index 98% rename from application/models/campcaster/om/BaseCcPrefQuery.php rename to application/models/airtime/om/BaseCcPrefQuery.php index a079da89d..473bafc98 100644 --- a/application/models/campcaster/om/BaseCcPrefQuery.php +++ b/application/models/airtime/om/BaseCcPrefQuery.php @@ -37,7 +37,7 @@ * @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.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcPrefQuery extends ModelCriteria { @@ -49,7 +49,7 @@ abstract class BaseCcPrefQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcPref', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcPref', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcSchedule.php b/application/models/airtime/om/BaseCcSchedule.php similarity index 99% rename from application/models/campcaster/om/BaseCcSchedule.php rename to application/models/airtime/om/BaseCcSchedule.php index e70308a92..66d36c908 100644 --- a/application/models/campcaster/om/BaseCcSchedule.php +++ b/application/models/airtime/om/BaseCcSchedule.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSchedule extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcSchedulePeer.php b/application/models/airtime/om/BaseCcSchedulePeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcSchedulePeer.php rename to application/models/airtime/om/BaseCcSchedulePeer.php index d06c4d39d..595d650c5 100644 --- a/application/models/campcaster/om/BaseCcSchedulePeer.php +++ b/application/models/airtime/om/BaseCcSchedulePeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSchedulePeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_schedule'; @@ -20,7 +20,7 @@ abstract class BaseCcSchedulePeer { const OM_CLASS = 'CcSchedule'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcSchedule'; + const CLASS_DEFAULT = 'airtime.CcSchedule'; /** the related TableMap class for this table */ const TM_CLASS = 'CcScheduleTableMap'; diff --git a/application/models/campcaster/om/BaseCcScheduleQuery.php b/application/models/airtime/om/BaseCcScheduleQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcScheduleQuery.php rename to application/models/airtime/om/BaseCcScheduleQuery.php index af5a98e1c..dfaa06ff3 100644 --- a/application/models/campcaster/om/BaseCcScheduleQuery.php +++ b/application/models/airtime/om/BaseCcScheduleQuery.php @@ -69,7 +69,7 @@ * @method array findByDbScheduleGroupPlayed(boolean $schedule_group_played) Return CcSchedule objects filtered by the schedule_group_played column * @method array findByDbMediaItemPlayed(boolean $media_item_played) Return CcSchedule objects filtered by the media_item_played column * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcScheduleQuery extends ModelCriteria { @@ -81,7 +81,7 @@ abstract class BaseCcScheduleQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcSchedule', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcSchedule', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcSess.php b/application/models/airtime/om/BaseCcSess.php similarity index 99% rename from application/models/campcaster/om/BaseCcSess.php rename to application/models/airtime/om/BaseCcSess.php index 11c94f696..8ae2463af 100644 --- a/application/models/campcaster/om/BaseCcSess.php +++ b/application/models/airtime/om/BaseCcSess.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSess extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcSessPeer.php b/application/models/airtime/om/BaseCcSessPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcSessPeer.php rename to application/models/airtime/om/BaseCcSessPeer.php index 0ca095e21..70eab561a 100644 --- a/application/models/campcaster/om/BaseCcSessPeer.php +++ b/application/models/airtime/om/BaseCcSessPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSessPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_sess'; @@ -20,7 +20,7 @@ abstract class BaseCcSessPeer { const OM_CLASS = 'CcSess'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcSess'; + const CLASS_DEFAULT = 'airtime.CcSess'; /** the related TableMap class for this table */ const TM_CLASS = 'CcSessTableMap'; diff --git a/application/models/campcaster/om/BaseCcSessQuery.php b/application/models/airtime/om/BaseCcSessQuery.php similarity index 98% rename from application/models/campcaster/om/BaseCcSessQuery.php rename to application/models/airtime/om/BaseCcSessQuery.php index 97aef6a34..f0b500f83 100644 --- a/application/models/campcaster/om/BaseCcSessQuery.php +++ b/application/models/airtime/om/BaseCcSessQuery.php @@ -37,7 +37,7 @@ * @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.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSessQuery extends ModelCriteria { @@ -49,7 +49,7 @@ abstract class BaseCcSessQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcSess', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcSess', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcShow.php b/application/models/airtime/om/BaseCcShow.php similarity index 99% rename from application/models/campcaster/om/BaseCcShow.php rename to application/models/airtime/om/BaseCcShow.php index acb78d170..5aeb58710 100644 --- a/application/models/campcaster/om/BaseCcShow.php +++ b/application/models/airtime/om/BaseCcShow.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShow extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcShowDays.php b/application/models/airtime/om/BaseCcShowDays.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowDays.php rename to application/models/airtime/om/BaseCcShowDays.php index aae186fb1..3f6849ad2 100644 --- a/application/models/campcaster/om/BaseCcShowDays.php +++ b/application/models/airtime/om/BaseCcShowDays.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowDays extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcShowDaysPeer.php b/application/models/airtime/om/BaseCcShowDaysPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowDaysPeer.php rename to application/models/airtime/om/BaseCcShowDaysPeer.php index ba58f2c49..d1872de3e 100644 --- a/application/models/campcaster/om/BaseCcShowDaysPeer.php +++ b/application/models/airtime/om/BaseCcShowDaysPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowDaysPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_show_days'; @@ -20,7 +20,7 @@ abstract class BaseCcShowDaysPeer { const OM_CLASS = 'CcShowDays'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcShowDays'; + const CLASS_DEFAULT = 'airtime.CcShowDays'; /** the related TableMap class for this table */ const TM_CLASS = 'CcShowDaysTableMap'; diff --git a/application/models/campcaster/om/BaseCcShowDaysQuery.php b/application/models/airtime/om/BaseCcShowDaysQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowDaysQuery.php rename to application/models/airtime/om/BaseCcShowDaysQuery.php index 4d8219846..a249768af 100644 --- a/application/models/campcaster/om/BaseCcShowDaysQuery.php +++ b/application/models/airtime/om/BaseCcShowDaysQuery.php @@ -49,7 +49,7 @@ * @method array findByDbDay(int $day) Return CcShowDays objects filtered by the day column * @method array findByDbShowId(int $show_id) Return CcShowDays objects filtered by the show_id column * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowDaysQuery extends ModelCriteria { @@ -61,7 +61,7 @@ abstract class BaseCcShowDaysQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcShowDays', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcShowDays', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcShowHosts.php b/application/models/airtime/om/BaseCcShowHosts.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowHosts.php rename to application/models/airtime/om/BaseCcShowHosts.php index 68008cd54..ca4d11449 100644 --- a/application/models/campcaster/om/BaseCcShowHosts.php +++ b/application/models/airtime/om/BaseCcShowHosts.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowHosts extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcShowHostsPeer.php b/application/models/airtime/om/BaseCcShowHostsPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowHostsPeer.php rename to application/models/airtime/om/BaseCcShowHostsPeer.php index 38c94c4dd..33a82f0d9 100644 --- a/application/models/campcaster/om/BaseCcShowHostsPeer.php +++ b/application/models/airtime/om/BaseCcShowHostsPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowHostsPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_show_hosts'; @@ -20,7 +20,7 @@ abstract class BaseCcShowHostsPeer { const OM_CLASS = 'CcShowHosts'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcShowHosts'; + const CLASS_DEFAULT = 'airtime.CcShowHosts'; /** the related TableMap class for this table */ const TM_CLASS = 'CcShowHostsTableMap'; diff --git a/application/models/campcaster/om/BaseCcShowHostsQuery.php b/application/models/airtime/om/BaseCcShowHostsQuery.php similarity index 98% rename from application/models/campcaster/om/BaseCcShowHostsQuery.php rename to application/models/airtime/om/BaseCcShowHostsQuery.php index 4f365ed61..2b910a52b 100644 --- a/application/models/campcaster/om/BaseCcShowHostsQuery.php +++ b/application/models/airtime/om/BaseCcShowHostsQuery.php @@ -37,7 +37,7 @@ * @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.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowHostsQuery extends ModelCriteria { @@ -49,7 +49,7 @@ abstract class BaseCcShowHostsQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcShowHosts', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcShowHosts', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcShowPeer.php b/application/models/airtime/om/BaseCcShowPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowPeer.php rename to application/models/airtime/om/BaseCcShowPeer.php index b7663bc5d..520fb2d85 100644 --- a/application/models/campcaster/om/BaseCcShowPeer.php +++ b/application/models/airtime/om/BaseCcShowPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_show'; @@ -20,7 +20,7 @@ abstract class BaseCcShowPeer { const OM_CLASS = 'CcShow'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcShow'; + const CLASS_DEFAULT = 'airtime.CcShow'; /** the related TableMap class for this table */ const TM_CLASS = 'CcShowTableMap'; diff --git a/application/models/campcaster/om/BaseCcShowQuery.php b/application/models/airtime/om/BaseCcShowQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowQuery.php rename to application/models/airtime/om/BaseCcShowQuery.php index d6fd228c9..0c8e57d6f 100644 --- a/application/models/campcaster/om/BaseCcShowQuery.php +++ b/application/models/airtime/om/BaseCcShowQuery.php @@ -45,7 +45,7 @@ * @method array findByDbRepeats(int $repeats) Return CcShow objects filtered by the repeats column * @method array findByDbDescription(string $description) Return CcShow objects filtered by the description column * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowQuery extends ModelCriteria { @@ -57,7 +57,7 @@ abstract class BaseCcShowQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcShow', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcShow', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcShowSchedule.php b/application/models/airtime/om/BaseCcShowSchedule.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowSchedule.php rename to application/models/airtime/om/BaseCcShowSchedule.php index c3f5796df..b339bfc1a 100644 --- a/application/models/campcaster/om/BaseCcShowSchedule.php +++ b/application/models/airtime/om/BaseCcShowSchedule.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowSchedule extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcShowSchedulePeer.php b/application/models/airtime/om/BaseCcShowSchedulePeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcShowSchedulePeer.php rename to application/models/airtime/om/BaseCcShowSchedulePeer.php index 83f2f63d6..b806828f0 100644 --- a/application/models/campcaster/om/BaseCcShowSchedulePeer.php +++ b/application/models/airtime/om/BaseCcShowSchedulePeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowSchedulePeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_show_schedule'; @@ -20,7 +20,7 @@ abstract class BaseCcShowSchedulePeer { const OM_CLASS = 'CcShowSchedule'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcShowSchedule'; + const CLASS_DEFAULT = 'airtime.CcShowSchedule'; /** the related TableMap class for this table */ const TM_CLASS = 'CcShowScheduleTableMap'; diff --git a/application/models/campcaster/om/BaseCcShowScheduleQuery.php b/application/models/airtime/om/BaseCcShowScheduleQuery.php similarity index 98% rename from application/models/campcaster/om/BaseCcShowScheduleQuery.php rename to application/models/airtime/om/BaseCcShowScheduleQuery.php index cd64bba1d..729f516b7 100644 --- a/application/models/campcaster/om/BaseCcShowScheduleQuery.php +++ b/application/models/airtime/om/BaseCcShowScheduleQuery.php @@ -41,7 +41,7 @@ * @method array findByDbPosition(int $position) Return CcShowSchedule objects filtered by the position column * @method array findByDbGroupId(int $group_id) Return CcShowSchedule objects filtered by the group_id column * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcShowScheduleQuery extends ModelCriteria { @@ -53,7 +53,7 @@ abstract class BaseCcShowScheduleQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcShowSchedule', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcShowSchedule', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcSmemb.php b/application/models/airtime/om/BaseCcSmemb.php similarity index 99% rename from application/models/campcaster/om/BaseCcSmemb.php rename to application/models/airtime/om/BaseCcSmemb.php index bb98b5c1e..7fc4dbc9b 100644 --- a/application/models/campcaster/om/BaseCcSmemb.php +++ b/application/models/airtime/om/BaseCcSmemb.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSmemb extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcSmembPeer.php b/application/models/airtime/om/BaseCcSmembPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcSmembPeer.php rename to application/models/airtime/om/BaseCcSmembPeer.php index 152440c7e..849c13423 100644 --- a/application/models/campcaster/om/BaseCcSmembPeer.php +++ b/application/models/airtime/om/BaseCcSmembPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSmembPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_smemb'; @@ -20,7 +20,7 @@ abstract class BaseCcSmembPeer { const OM_CLASS = 'CcSmemb'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcSmemb'; + const CLASS_DEFAULT = 'airtime.CcSmemb'; /** the related TableMap class for this table */ const TM_CLASS = 'CcSmembTableMap'; diff --git a/application/models/campcaster/om/BaseCcSmembQuery.php b/application/models/airtime/om/BaseCcSmembQuery.php similarity index 98% rename from application/models/campcaster/om/BaseCcSmembQuery.php rename to application/models/airtime/om/BaseCcSmembQuery.php index c0ac62c18..06b24502c 100644 --- a/application/models/campcaster/om/BaseCcSmembQuery.php +++ b/application/models/airtime/om/BaseCcSmembQuery.php @@ -37,7 +37,7 @@ * @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.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSmembQuery extends ModelCriteria { @@ -49,7 +49,7 @@ abstract class BaseCcSmembQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcSmemb', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcSmemb', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcSubjs.php b/application/models/airtime/om/BaseCcSubjs.php similarity index 99% rename from application/models/campcaster/om/BaseCcSubjs.php rename to application/models/airtime/om/BaseCcSubjs.php index fc667ebb9..bc90d9504 100644 --- a/application/models/campcaster/om/BaseCcSubjs.php +++ b/application/models/airtime/om/BaseCcSubjs.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSubjs extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcSubjsPeer.php b/application/models/airtime/om/BaseCcSubjsPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcSubjsPeer.php rename to application/models/airtime/om/BaseCcSubjsPeer.php index d0b4a43f3..202711cbd 100644 --- a/application/models/campcaster/om/BaseCcSubjsPeer.php +++ b/application/models/airtime/om/BaseCcSubjsPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSubjsPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_subjs'; @@ -20,7 +20,7 @@ abstract class BaseCcSubjsPeer { const OM_CLASS = 'CcSubjs'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcSubjs'; + const CLASS_DEFAULT = 'airtime.CcSubjs'; /** the related TableMap class for this table */ const TM_CLASS = 'CcSubjsTableMap'; diff --git a/application/models/campcaster/om/BaseCcSubjsQuery.php b/application/models/airtime/om/BaseCcSubjsQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcSubjsQuery.php rename to application/models/airtime/om/BaseCcSubjsQuery.php index 50371c86e..a38e68049 100644 --- a/application/models/campcaster/om/BaseCcSubjsQuery.php +++ b/application/models/airtime/om/BaseCcSubjsQuery.php @@ -77,7 +77,7 @@ * @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 * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcSubjsQuery extends ModelCriteria { @@ -89,7 +89,7 @@ abstract class BaseCcSubjsQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcSubjs', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcSubjs', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/models/campcaster/om/BaseCcTrans.php b/application/models/airtime/om/BaseCcTrans.php similarity index 99% rename from application/models/campcaster/om/BaseCcTrans.php rename to application/models/airtime/om/BaseCcTrans.php index e7ce7ef9f..2ea4f7c20 100644 --- a/application/models/campcaster/om/BaseCcTrans.php +++ b/application/models/airtime/om/BaseCcTrans.php @@ -6,7 +6,7 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcTrans extends BaseObject implements Persistent { diff --git a/application/models/campcaster/om/BaseCcTransPeer.php b/application/models/airtime/om/BaseCcTransPeer.php similarity index 99% rename from application/models/campcaster/om/BaseCcTransPeer.php rename to application/models/airtime/om/BaseCcTransPeer.php index c8dd333a9..bac6b9ed8 100644 --- a/application/models/campcaster/om/BaseCcTransPeer.php +++ b/application/models/airtime/om/BaseCcTransPeer.php @@ -6,12 +6,12 @@ * * * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcTransPeer { /** the default database name for this class */ - const DATABASE_NAME = 'campcaster'; + const DATABASE_NAME = 'airtime'; /** the table name for this class */ const TABLE_NAME = 'cc_trans'; @@ -20,7 +20,7 @@ abstract class BaseCcTransPeer { const OM_CLASS = 'CcTrans'; /** A class that can be returned by this peer. */ - const CLASS_DEFAULT = 'campcaster.CcTrans'; + const CLASS_DEFAULT = 'airtime.CcTrans'; /** the related TableMap class for this table */ const TM_CLASS = 'CcTransTableMap'; diff --git a/application/models/campcaster/om/BaseCcTransQuery.php b/application/models/airtime/om/BaseCcTransQuery.php similarity index 99% rename from application/models/campcaster/om/BaseCcTransQuery.php rename to application/models/airtime/om/BaseCcTransQuery.php index e00396ef6..0bbccae2f 100644 --- a/application/models/campcaster/om/BaseCcTransQuery.php +++ b/application/models/airtime/om/BaseCcTransQuery.php @@ -113,7 +113,7 @@ * @method array findByStart(string $start) Return CcTrans objects filtered by the start column * @method array findByTs(string $ts) Return CcTrans objects filtered by the ts column * - * @package propel.generator.campcaster.om + * @package propel.generator.airtime.om */ abstract class BaseCcTransQuery extends ModelCriteria { @@ -125,7 +125,7 @@ abstract class BaseCcTransQuery extends ModelCriteria * @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 = 'campcaster', $modelName = 'CcTrans', $modelAlias = null) + public function __construct($dbName = 'airtime', $modelName = 'CcTrans', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } diff --git a/application/views/scripts/schedule/find-playlists-partial.phtml b/application/views/scripts/schedule/find-playlists-partial.phtml new file mode 100644 index 000000000..7eca33da6 --- /dev/null +++ b/application/views/scripts/schedule/find-playlists-partial.phtml @@ -0,0 +1,11 @@ +
  • +
    name ?>
    +
    description ?>
    +
    length ?>
    +
    + Creator: creator ?> + state === "edited") : ?> + Editing: login ?> + +
    +
  • diff --git a/application/views/scripts/schedule/find-playlists.ajax.phtml b/application/views/scripts/schedule/find-playlists.ajax.phtml new file mode 100644 index 000000000..f5d6626cf --- /dev/null +++ b/application/views/scripts/schedule/find-playlists.ajax.phtml @@ -0,0 +1,5 @@ +playlists) > 0) { + echo $this->partialLoop('schedule/find-playlists-partial.phtml', $this->playlists); + } +?> diff --git a/application/views/scripts/schedule/find-playlists.phtml b/application/views/scripts/schedule/find-playlists.phtml new file mode 100644 index 000000000..e69de29bb diff --git a/application/views/scripts/schedule/schedule-show.phtml b/application/views/scripts/schedule/schedule-show.phtml index 57a6a9358..eee852c11 100644 --- a/application/views/scripts/schedule/schedule-show.phtml +++ b/application/views/scripts/schedule/schedule-show.phtml @@ -1 +1,9 @@ -

    View script for controller Schedule and script/action name scheduleShow
    \ No newline at end of file +
    + +
      +partialLoop('schedule/find-playlists-partial.phtml', $this->playlists); +?> +
    +
      No Playlists
    +
    diff --git a/build/build.properties b/build/build.properties index 02554bf8b..588b7c122 100644 --- a/build/build.properties +++ b/build/build.properties @@ -1,4 +1,4 @@ -project.home = /path/to/airtime +project.home = /home/naomiaro/dev-campcaster/campcaster project.build = ${project.home}/build #Database driver @@ -6,7 +6,7 @@ propel.database = pgsql propel.database.url = pgsql:host=localhost dbname=airtime user=airtime password=airtime #Project name -propel.project = campcaster +propel.project = airtime propel.schema.dir = ${project.build} propel.conf.dir = ${project.build} diff --git a/build/runtime-conf.xml b/build/runtime-conf.xml index 495b9469b..fff70863a 100644 --- a/build/runtime-conf.xml +++ b/build/runtime-conf.xml @@ -1,8 +1,8 @@ - - + + pgsql pgsql:host=localhost;port=5432;dbname=airtime;user=airtime;password=airtime diff --git a/build/schema.xml b/build/schema.xml index 720e7126a..2e3318ceb 100644 --- a/build/schema.xml +++ b/build/schema.xml @@ -1,6 +1,6 @@ - + diff --git a/build/sql/sqldb.map b/build/sql/sqldb.map index 073a0432b..581705ff6 100644 --- a/build/sql/sqldb.map +++ b/build/sql/sqldb.map @@ -1,5 +1,5 @@ # Sqlfile -> Database map -schema.sql=campcaster +schema.sql=airtime sequences.sql=campcaster views.sql=campcaster triggers.sql=campcaster diff --git a/public/js/airtime/library/library.js b/public/js/airtime/library/library.js index 12ea190d5..ab0be843b 100644 --- a/public/js/airtime/library/library.js +++ b/public/js/airtime/library/library.js @@ -41,7 +41,7 @@ function deletePlaylist(json) { function addLibraryItemEvents() { $('#library_display tr[id ^= "au"]') .draggable({ - helper: 'clone' + helper: 'clone' }); $('#library_display tr:not(:first-child)') diff --git a/public/js/airtime/schedule/schedule.js b/public/js/airtime/schedule/schedule.js index 072c5d219..220a8e317 100644 --- a/public/js/airtime/schedule/schedule.js +++ b/public/js/airtime/schedule/schedule.js @@ -104,33 +104,6 @@ function closeDialog(event, ui) { $(this).remove(); } -function schedulePlaylist() { - var li, pl_id, url, event, start, dialog; - - dialog = $(this); - li = $("#schedule_playlist_dialog").find(".ui-state-active"); - - if(li.length === 0) { - dialog.remove(); - return; - } - - pl_id = li.data('pl_id'); - event = li.parent().data('event'); - - start_date = makeTimeStamp(event.start); - - url = '/Schedule/schedule-show/format/json'; - - $.post(url, - {plId: pl_id, start: start_date, showId: event.id}, - function(json){ - dialog.remove(); - $("#schedule_calendar").fullCalendar( 'refetchEvents' ); - }); - -} - function autoSelect(event, ui) { $("#hosts-"+ui.item.value).attr("checked", "checked"); @@ -174,45 +147,6 @@ function makeShowDialog(json) { return dialog; } -function makeScheduleDialog(playlists, event) { - - var dialog; - - //main jqueryUI dialog - dialog = $('
    '); - - var ol, li; - ol = $('
      '); - $.each(playlists, function(i, val){ - li = $('
    • ') - .addClass('ui-widget-content') - .append('
      '+val.name+'
      ') - .append('
      '+val.description+'
      ') - .append('
      '+val.length+'
      ') - .click(function(){ - $(this).parent().find("li").removeClass("ui-state-active") - $(this).addClass("ui-state-active"); - }); - - li.data({'pl_id': val.id}); - ol.append(li); - }); - - ol.data({'event': event}); - dialog.append(ol); - - dialog.dialog({ - autoOpen: false, - title: 'Schedule Playlist', - width: 950, - height: 400, - close: closeDialog, - buttons: { "Cancel": closeDialog, "Ok": schedulePlaylist} - }); - - return dialog; -} - function openShowDialog() { var url; @@ -220,11 +154,55 @@ function openShowDialog() { $.get(url, function(json){ var dialog = makeShowDialog(json); + dialog.dialog('open'); }); } -function openScheduleDialog(event, time) { +function makeScheduleDialog(dialog, show) { + + dialog.find("#schedule_playlist_search").keyup(function(){ + var url, string, day; + + url = "/Schedule/find-playlists/format/html"; + string = $(this).val(); + day = show.start.getDay(); + + $.post(url, {search: string, id: show.id, day: day}, function(html){ + + $("#schedule_playlist_choice") + .empty() + .append(html); + + }); + }); + + dialog.find('#schedule_playlist_choice li') + .draggable({ + helper: 'clone' + }); + + dialog.find("#schedule_playlist_chosen") + .droppable({ + drop: function(event, ui) { + var li, pl_id, url, start_date; + + pl_id = $(ui.helper).attr("id").split("_").pop(); + + start_date = makeTimeStamp(show.start); + + url = '/Schedule/schedule-show/format/json'; + + /*$.post(url, + {plId: pl_id, start: start_date, showId: show.id}, + function(json){ + var x; + }); */ + } + }); +} + +function openScheduleDialog(show, time) { var url; url = '/Schedule/schedule-show/format/json'; @@ -232,7 +210,22 @@ function openScheduleDialog(event, time) { $.get(url, {length: time}, function(json){ - var dialog = makeScheduleDialog(json.playlists, event); + var dialog = $(json.dialog); + + makeScheduleDialog(dialog, show); + + dialog.dialog({ + autoOpen: false, + title: 'Schedule Playlist', + width: 950, + height: 400, + close: closeDialog, + buttons: {"Ok": function() { + dialog.remove(); + $("#schedule_calendar").fullCalendar( 'refetchEvents' ); + }} + }); + dialog.dialog('open'); }); }