public function deleteAction() { SxCms_Acl::requireAcl('sheets', 'sheets.delete'); $type_id = $this->_getParam('id'); $proxy = new SxModule_Sheets_Subtype_Proxy(); $this->_subtype = $proxy->getTypeById($type_id); $this->_subtype->delete(); $cache = Zend_Registry::get('cache'); $cache->clean(Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, array('SxModule_Sheets_Subtype')); $proxyAction = new SxModule_Sheets_Proxy(); $proxyAction->deleteByType($type_id); $flashMessenger = $this->_helper->getHelper('FlashMessenger'); $flashMessenger->addMessage($this->admin_tmx->_('itemdeleted')); $this->_helper->redirector->gotoSimple('index', 'sheets_subtype', 'admin', array('type' => $this->_getParam('type'))); }
public function deleteAction() { SxCms_Acl::requireAcl('sheets', 'sheets.delete'); $type_id = $this->_getParam('id'); $proxy = new SxModule_Sheets_Type_Proxy(); $this->_type = $proxy->getTypeById($type_id, $_SESSION['System']['lng']); $this->_type->delete(); $cache = Zend_Registry::get('cache'); $cache->clean(Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, array('SxModule_Sheets_Type')); $proxyAction = new SxModule_Sheets_Proxy(); $proxyAction->deleteByType($type_id); $flashMessenger = $this->_helper->getHelper('FlashMessenger'); $flashMessenger->addMessage('Type werd succesvol verwijderd!'); $this->_helper->redirector->gotoSimple('index', 'sheets_type'); }