예제 #1
0
 public static function deleteCoupon()
 {
     $deleted = lC_Coupons_Admin::delete($_GET['cid']);
     if ($deleted) {
         $result['rpcStatus'] = RPC_STATUS_SUCCESS;
     }
     echo json_encode($result);
 }
예제 #2
0
 /**
  * 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;
 }