Posts_Table_Factory extends Table_Factory

A factory for creating Posts_Table objects.

Tags
deprecated
2.2

Replaced by Barn2\Plugin\Posts_Table_Pro\Table_Factory

Table of Contents

$current_id  : mixed
$tables  : mixed
__callStatic()  : mixed
create()  : Posts_Table
Create new table based on the supplied args.
fetch()  : Posts_Table
Fetch an existing table by ID.
generate_id()  : mixed

Properties

Methods

__callStatic()

public static __callStatic(mixed $name, mixed $args) : mixed
Parameters
$name : mixed
$args : mixed
Return values
mixed

create()

Create new table based on the supplied args.

public static create(array<string|int, mixed> $args) : Posts_Table
Parameters
$args : array<string|int, mixed>

The args to use for the table.

Return values
Posts_Table

The posts table object.

fetch()

Fetch an existing table by ID.

public static fetch(string $id) : Posts_Table
Parameters
$id : string

The posts table ID.

Return values
Posts_Table

The posts table object.

generate_id()

private static generate_id(mixed $args) : mixed
Parameters
$args : mixed
Return values
mixed

Search results