Batch_VAT_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
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
Properties
$export_type
Export type key
public
string
$export_type
= 'eu_vat'
$step_count
Steps per batch
protected
int
$step_count
= 30
Methods
csv_cols()
Set the CSV columns
public
csv_cols() : array<string|int, mixed>
Return values
array<string|int, mixed> —$cols All the columns
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
get_percentage_complete()
Return the calculated completion percentage
public
get_percentage_complete() : int
Return values
int —print_csv_rows()
Print the CSV rows for the current step
public
print_csv_rows() : string|false
Return values
string|false —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
get_total_steps()
Gets the total step count
private
get_total_steps() : int
Return values
int —$steps