예제 #1
0
 /**
  * @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));
 }
예제 #2
0
파일: Taxes.php 프로젝트: laiello/resmania
 /**
  * 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);
 }