public function cancelShowAction() { $userInfo = Zend_Auth::getInstance()->getStorage()->read(); $user = new User($userInfo->id); if ($user->isUserType(array(UTYPE_ADMIN, UTYPE_PROGRAM_MANAGER))) { $showInstanceId = $this->_getParam('id'); $showInstance = new ShowInstance($showInstanceId); $show = new Show($showInstance->getShowId()); $show->cancelShow($showInstance->getShowStart()); } }