A Resource defines how a set of records should be interpreted for display in a table.
-
CultureHosts\WP\Importer\Admin\Table_Resource
Located at culturehosts-importer/src/Admin/Table_Resource.php
| Methods |
public
|
__construct(Query $query)
Parameters
| $query |
The data to prepare for display.
|
|
#
|
abstract
public
|
get_columns(): array
Get the columns to display for this record type.
Get the columns to display for this record type.
Implemented by
|
#
|
abstract
public
|
get_sortable_columns(): array
Get the sortable columns for the table.
Get the sortable columns for the table.
Implemented by
|
#
|
public
|
get_hidden_columns(): array
Get the hidden columns for the table.
Get the hidden columns for the table.
|
#
|
abstract
public
|
process_record(Record $record): array
Extract the column data from a single record.
Extract the column data from a single record.
Implemented by
|
#
|
public
|
get_data(): array
Extract the column data for the table, from the records.
Extract the column data for the table, from the records.
|
#
|