public static function deleteCoupon() { $deleted = lC_Coupons_Admin::delete($_GET['cid']); if ($deleted) { $result['rpcStatus'] = RPC_STATUS_SUCCESS; } echo json_encode($result); }
/** * Batch delete coupons records * * @param array $batch The coupons id's to delete * @access public * @return boolean */ public static function batchDelete($batch) { foreach ($batch as $id) { lC_Coupons_Admin::delete($id); } return true; }