/** * @param request ids taxes rows ids * @see plugins/taxes/js/edit.js * @return json json array information: success of failure */ function deleteJsonAction() { $taxIDs = $this->_getParam('ids', array()); $model = new RM_Taxes(); foreach ($taxIDs as $taxID) { $tax = $model->find($taxID)->current(); if ($tax !== null) { $tax->delete(); } } return array('data' => array('success' => true)); }
/** * Invokes after user delete language, make some changes for price module * * @param string $iso ISO language code * @return null */ public function deleteLanguage($iso) { parent::deleteLanguage($iso); $model = new RM_Taxes(); $model->deleteLanguage($iso); }