Table_Factory
A factory for creating Posts_Table objects.
Tags
Table of Contents
- create() : Abstract_View
- Create a new table based on the supplied args.
- create_table() : Abstract_View
- Create table.
- fetch() : Posts_Table|false
- Fetch an existing table by ID.
Methods
create()
Create a new table based on the supplied args.
public
static create([array<string|int, mixed> $args = [] ]) : Abstract_View
Parameters
- $args : array<string|int, mixed> = []
-
The args to use for the table.
Tags
Return values
Abstract_View —The posts table object.
create_table()
Create table.
public
static create_table(array<string|int, mixed> $args) : Abstract_View
Parameters
- $args : array<string|int, mixed>
-
The args to use for the table.
Tags
Return values
Abstract_View —The posts table object.
fetch()
Fetch an existing table by ID.
public
static fetch(string $id) : Posts_Table|false
Parameters
- $id : string
-
Table ID.
Tags
Return values
Posts_Table|false —The table object or false if not found.