CC-1805: Ability to edit a show

-removed (now) redundant moveScheduledShowContent function
This commit is contained in:
martin 2011-04-14 18:03:24 -04:00
parent b6e235b8fe
commit d2239b827d
1 changed files with 2 additions and 14 deletions

View File

@ -1304,19 +1304,6 @@ class ShowInstance {
$showInstance->updateDbTimeFilled($con);
}
public function moveScheduledShowContent($deltaDay, $deltaHours, $deltaMin)
{
global $CC_DBC;
$sql = "UPDATE cc_schedule
SET starts = (starts + interval '{$deltaDay} days' + interval '{$deltaHours}:{$deltaMin}'),
ends = (ends + interval '{$deltaDay} days' + interval '{$deltaHours}:{$deltaMin}')
WHERE instance_id = '{$this->_instanceId}'";
$CC_DBC->query($sql);
RabbitMq::PushSchedule();
}
public function correctScheduleStartTimes(){
global $CC_DBC;
@ -1343,6 +1330,7 @@ class ShowInstance {
$CC_DBC->query($sql);
}
}
RabbitMq::PushSchedule();
}
public function moveShow($deltaDay, $deltaMin)
@ -1387,9 +1375,9 @@ class ShowInstance {
}
}
$this->moveScheduledShowContent($deltaDay, $hours, $mins);
$this->setShowStart($new_starts);
$this->setShowEnd($new_ends);
$this->correctScheduleStartTimes();
RabbitMq::PushSchedule();
}