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