changed how shows saved in database to make keeping track of host permissions easier.

This commit is contained in:
naomiaro 2010-12-10 12:15:17 -05:00
parent b10c2cfe2a
commit d94063fbe4
30 changed files with 6527 additions and 812 deletions

View file

@ -71,12 +71,26 @@ class ScheduleController extends Zend_Controller_Action
$show = new Show($userInfo->type);
$this->view->overlap = $show->moveShow($showId, $deltaDay, $deltaMin);
$overlap = $show->moveShow($showId, $deltaDay, $deltaMin);
if(isset($overlap))
$this->view->overlap = $overlap;
}
public function resizeShowAction()
{
// action body
$deltaDay = $this->_getParam('day');
$deltaMin = $this->_getParam('min');
$showId = $this->_getParam('showId');
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
$show = new Show($userInfo->type);
$overlap = $show->resizeShow($showId, $deltaDay, $deltaMin);
if(isset($overlap))
$this->view->overlap = $overlap;
}