Eeco_Gift_Cards_Reports
in package
Table of Contents
- __construct() : mixed
- get_reports() : array<string|int, mixed>
- returns the general report data
- get_transactions() : array<string|int, mixed>
- get data for reports table
- handle_csv() : mixed
- generate reports csv if necessary
- set_header() : mixed
- set header for downloading the csv
Methods
__construct()
public
__construct() : mixed
Return values
mixed —get_reports()
returns the general report data
public
static get_reports() : array<string|int, mixed>
Return values
array<string|int, mixed> —Reports
get_transactions()
get data for reports table
public
static get_transactions(int $offset, int $limit, string $order, string $order_by) : array<string|int, mixed>
Parameters
- $offset : int
-
The offset
- $limit : int
-
Item limit
- $order : string
-
Which order to sort
- $order_by : string
-
Order by item
Return values
array<string|int, mixed> —Transactions
handle_csv()
generate reports csv if necessary
private
handle_csv() : mixed
Return values
mixed —set_header()
set header for downloading the csv
private
set_header() : mixed