CC-3174 : showbuilder

adding new column last_scheduled to cc_show_instance
changing column time_filled to be of type interval.
This commit is contained in:
Naomi Aro 2012-02-15 18:27:59 +01:00
parent b1fbeeb448
commit f14ebce239
10 changed files with 219 additions and 75 deletions

View file

@ -288,13 +288,18 @@ class Application_Model_Scheduler {
}
}
public function removeItems($scheduledIds, $adjustSched = true) {
public function removeItems($scheduledItems, $adjustSched = true) {
$showInstances = array();
$this->con->beginTransaction();
try {
$scheduledIds = array();
foreach ($scheduledItems as $item) {
$scheduledIds[] = $item["id"];
}
$removedItems = CcScheduleQuery::create()->findPks($scheduledIds);
$removedItems->delete($this->con);