\Barn2\Plugin\WC_Product_TableTable_Factory

A Product_Table factory.

Summary

Methods
Properties
Constants
create()
fetch()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
generate_id()
$tables
$current_id
N/A

Properties

$tables

$tables :

Type

$current_id

$current_id :

Type

Methods

create()

create(array  $args): \Barn2\Plugin\WC_Product_Table\Product_Table

Create a new table based on the supplied args.

Parameters

array $args

The args to use for the table.

Returns

\Barn2\Plugin\WC_Product_Table\Product_Table

The product table object.

fetch()

fetch(string  $id): \Barn2\Plugin\WC_Product_Table\Product_Table

Fetch an existing table by ID.

Parameters

string $id

The product table ID.

Returns

\Barn2\Plugin\WC_Product_Table\Product_Table

The product table object.

generate_id()

generate_id(  $args)

Parameters

$args