eeco_logo_svg Created with Sketch.

WooCommerce Gift Cards

Eeco_Gift_Cards_Reports_Table extends WP_List_Table
in package

Table of Contents

__construct()  : mixed
constructing
column_default()  : string
set column data
get_columns()  : mixed
returns columns for the table
get_data()  : array<string|int, mixed>
returns current table data
get_limit()  : int
returns how many items per page to show
get_offset()  : int
returns current page
get_sortable_columns()  : mixed
returns sortable columns
prepare_items()  : mixed
prepare the table and fetch data
extra_tablenav()  : mixed
add extra filter for the table
get_order_by_column()  : string
get the column to order by
get_order_by_order()  : string
get the order

Methods

column_default()

set column data

public column_default(object $item, string $column_name) : string
Parameters
$item : object

Row item

$column_name : string

Name of the column

Return values
string

Column value

get_columns()

returns columns for the table

public get_columns() : mixed
Return values
mixed

get_data()

returns current table data

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

Results of the db query

get_limit()

returns how many items per page to show

public get_limit() : int
Return values
int

Per page limit

get_offset()

returns current page

public get_offset() : int
Return values
int

The offset

get_sortable_columns()

returns sortable columns

public get_sortable_columns() : mixed
Return values
mixed

prepare_items()

prepare the table and fetch data

public prepare_items() : mixed
Return values
mixed

extra_tablenav()

add extra filter for the table

protected extra_tablenav(string $which) : mixed
Parameters
$which : string

Whether top or bottom filters

Return values
mixed

get_order_by_column()

get the column to order by

private get_order_by_column() : string
Return values
string

get_order_by_order()

get the order

private get_order_by_order() : string
Return values
string

        

Search results