Config_Builder
Responsible for creating the product table config script.
Tags
Table of Contents
- $args : Table_Args
- $columns : Table_Columns
- $id : string
- __construct() : mixed
- get_config() : array<string|int, mixed>|bool
- Build config for the table, to add as inline script to current page.
- get_filters() : mixed
- array_filter_length_menu() : mixed
- build_term_tree() : mixed
- get_filter_heading() : mixed
- get_terms_for_filter() : mixed
Properties
$args
public
Table_Args
$args
The table args.
$columns
public
Table_Columns
$columns
The table columns.
$id
public
string
$id
The table ID.
Methods
__construct()
public
__construct(mixed $id, Table_Args $args, Table_Columns $columns) : mixed
Parameters
- $id : mixed
- $args : Table_Args
- $columns : Table_Columns
Return values
mixed —get_config()
Build config for the table, to add as inline script to current page.
public
get_config() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool —The table config
get_filters()
public
get_filters() : mixed
Return values
mixed —array_filter_length_menu()
private
array_filter_length_menu(mixed $length) : mixed
Parameters
- $length : mixed
Return values
mixed —build_term_tree()
private
build_term_tree(array<string|int, mixed> &$terms, mixed $parent_id) : mixed
Parameters
- $terms : array<string|int, mixed>
- $parent_id : mixed
Return values
mixed —get_filter_heading()
private
get_filter_heading(mixed $index, mixed $filter) : mixed
Parameters
- $index : mixed
- $filter : mixed
Return values
mixed —get_terms_for_filter()
private
get_terms_for_filter(mixed $filter) : mixed
Parameters
- $filter : mixed