Data_Factory
Factory class to get the posts table data object for a given column.
Tags
Table of Contents
- $args : Table_Args
- __construct() : mixed
- create() : Table_Data_Interface
- Creates the data object for the given column.
Properties
$args
private
Table_Args
$args
The table args object.
Tags
Methods
__construct()
public
__construct(Table_Args $args) : mixed
Parameters
- $args : Table_Args
Tags
Return values
mixed —create()
Creates the data object for the given column.
public
create(string $column, WP_Post $post) : Table_Data_Interface
Parameters
- $column : string
-
The column to create the data object for.
- $post : WP_Post
-
The post to retrieve data from.
Tags
Return values
Table_Data_Interface —The data object.