summaryrefslogtreecommitdiffstats
path: root/application/modules/backend/controllers/MenuController.php
diff options
context:
space:
mode:
authorschmelzs2010-01-20 16:52:54 +0100
committerschmelzs2010-01-20 16:52:54 +0100
commit6c09e2d3b2a7e9c7bfeb403c01ec65315833281c (patch)
treef981c1e45fbe61b13ab7edb63f03b85e37310498 /application/modules/backend/controllers/MenuController.php
parentinitial import (diff)
downloadpbs-6c09e2d3b2a7e9c7bfeb403c01ec65315833281c.tar.gz
pbs-6c09e2d3b2a7e9c7bfeb403c01ec65315833281c.tar.xz
pbs-6c09e2d3b2a7e9c7bfeb403c01ec65315833281c.zip
added delete function for menu assignments
Diffstat (limited to 'application/modules/backend/controllers/MenuController.php')
-rw-r--r--application/modules/backend/controllers/MenuController.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/application/modules/backend/controllers/MenuController.php b/application/modules/backend/controllers/MenuController.php
index f8c6a7f..cdfa30b 100644
--- a/application/modules/backend/controllers/MenuController.php
+++ b/application/modules/backend/controllers/MenuController.php
@@ -198,6 +198,22 @@ class Backend_MenuController extends Zend_Controller_Action
}
+ public function delassignmentAction()
+ {
+ $this->_helper->viewRenderer->setNoRender();
+
+ $id = (int) $this->getRequest()->getParam("id");
+
+ $w = $this->_mmenu_assignments->getAdapter()->quoteInto('id = ?', $id);
+ $this->_mmenu_assignments->delete($w);
+
+ $w = $this->_mmenu_assignment_bmrules->getAdapter()->quoteInto('menu_assignment_rule = ?', $id);
+ $this->_mmenu_assignment_bmrules->delete($w);
+
+ $w = $this->_mmenu_assignment_iprules->getAdapter()->quoteInto('menu_assignment_rule = ?', $id);
+ $this->_mmenu_assignment_iprules->delete($w);
+ }
+
}