Merge branch 'master' of dev.sourcefabric.org:campcaster

This commit is contained in:
mkonecny 2011-01-10 17:12:13 -05:00
commit 277095a538
131 changed files with 551 additions and 395 deletions

View File

@ -62,6 +62,7 @@
<actionMethod actionName="makeContextMenu"/>
<actionMethod actionName="scheduleShow"/>
<actionMethod actionName="clearShow"/>
<actionMethod actionName="findPlaylists"/>
</controllerFile>
<controllerFile controllerName="Api">
<actionMethod actionName="index"/>
@ -238,6 +239,9 @@
<viewControllerScriptsDirectory forControllerName="Search">
<viewScriptFile forActionName="newgroup"/>
</viewControllerScriptsDirectory>
<viewControllerScriptsDirectory forControllerName="Schedule">
<viewScriptFile forActionName="findPlaylists"/>
</viewControllerScriptsDirectory>
</viewScriptsDirectory>
<viewHelpersDirectory/>
<viewFiltersDirectory enabled="false"/>

View File

@ -1,116 +1,116 @@
<?php
// This file generated by Propel 1.5.2 convert-conf target
return array (
'CcAccessTableMap' => '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',
);

View File

@ -1,10 +1,10 @@
<?php
// This file generated by Propel 1.5.2 convert-conf target
// from XML runtime conf file /home/naomi/dev-campcaster/campcaster/build/runtime-conf.xml
// from XML runtime conf file /home/naomiaro/dev-campcaster/campcaster/build/runtime-conf.xml
$conf = array (
'datasources' =>
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;

View File

@ -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

View File

@ -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.";

View File

@ -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);

View File

@ -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);
}
}

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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);

View File

@ -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

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcAccess extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcBackup extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcFiles extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcPerms extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcPlaylist extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcPlaylistcontents extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcPref extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcSchedule extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
*
*
*
* @package propel.generator.campcaster.om
* @package propel.generator.airtime.om
*/
abstract class BaseCcSess extends BaseObject implements Persistent
{

View File

@ -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';

View File

@ -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);
}

Some files were not shown because too many files have changed in this diff Show More