Batch_VAT_EC_Sales_Payments_Export extends EDD_Batch_Export

Handles VAT Payments batch export.

We don't namespace this class as there is an encoding issue with
when EDD creates the download URL response and passes back the class name

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$export_type  : string
Export type key
$step_count  : int
Steps per batch
csv_cols()  : array<string|int, mixed>
Set the CSV columns
get_data()  : array<string|int, mixed>
Get the Export Data
get_percentage_complete()  : int
Return the calculated completion percentage
print_csv_rows()  : string|false
Print the CSV rows for the current step
set_properties()  : mixed
Set the properties specific to the payments export
add_step_data_to_cache()  : array<string|int, mixed>
Adds step data to a temporary wp_option for caching
get_total_steps()  : int
Gets the total step count
round_payment_amount()  : int
Helper function to choose how to round payments

Properties

Methods

get_data()

Get the Export Data

public get_data() : array<string|int, mixed>
Return values
array<string|int, mixed>

$data The step data for the CSV file

set_properties()

Set the properties specific to the payments export

public set_properties(array<string|int, mixed> $request) : mixed
Parameters
$request : array<string|int, mixed>

The Form Data passed into the batch processing

Return values
mixed

add_step_data_to_cache()

Adds step data to a temporary wp_option for caching

private add_step_data_to_cache(array<string|int, mixed> $step_data, string $cache_key) : array<string|int, mixed>
Parameters
$step_data : array<string|int, mixed>
$cache_key : string
Return values
array<string|int, mixed>

$saved_data

round_payment_amount()

Helper function to choose how to round payments

private round_payment_amount(EDD_Payment $payment) : int
Parameters
$payment : EDD_Payment
Return values
int

Search results