Table_Factory

A factory for creating Posts_Table objects.

Tags
author

Barn2 Plugins [email protected]

license

GPL-3.0

copyright

Barn2 Media Ltd

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
deprecated

Use create() instead.

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
deprecated

Use View_Factory::fetch() instead.

Return values
Posts_Table|false

The table object or false if not found.

Search results