Created show service

This commit is contained in:
denise 2013-02-26 10:20:02 -05:00
parent 99c07272fd
commit d497cfa857
4 changed files with 2397 additions and 8 deletions

View file

@ -1229,7 +1229,7 @@ SQL;
//adding rows to cc_show_rebroadcast
/* TODO: Document magic constant 10 and define it properly somewhere
--RG */
if (($isRecorded && $data['add_show_rebroadcast']) && ($repeatType != -1)) {
/*if (($isRecorded && $data['add_show_rebroadcast']) && ($repeatType != -1)) {
for ($i=1; $i<=10; $i++) {
if ($data['add_show_rebroadcast_date_'.$i]) {
$showRebroad = new CcShowRebroadcast();
@ -1266,14 +1266,14 @@ SQL;
$showRebroad->save();
}
}
}
}*/
//check if we are adding or updating a show, and if updating
//erase all the show's show_rebroadcast information first.
if ($data['add_show_id'] != -1) {
CcShowHostsQuery::create()->filterByDbShow($data['add_show_id'])->delete();
}
if (is_array($data['add_show_hosts'])) {
/*if (is_array($data['add_show_hosts'])) {
//add selected hosts to cc_show_hosts table.
foreach ($data['add_show_hosts'] as $host) {
$showHost = new CcShowHosts();
@ -1281,7 +1281,7 @@ SQL;
$showHost->setDbHost($host);
$showHost->save();
}
}
}*/
if ($data['add_show_id'] != -1) {
$con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME);

File diff suppressed because it is too large Load diff