Table_Factory

A Product_Table factory.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

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

Properties

Methods

create()

Create a new table based on the supplied args.

public static create([array<string|int, mixed> $args = [] ]) : Product_Table
Parameters
$args : array<string|int, mixed> = []

The args to use for the table.

Tags
Return values
Product_Table

The product table object.

fetch()

Fetch an existing table by ID.

public static fetch(string $id) : Product_Table|false
Parameters
$id : string

The product table ID.

Tags
Return values
Product_Table|false

The product table object.

generate_id()

private static generate_id(array<string|int, mixed> $args) : mixed
Parameters
$args : array<string|int, mixed>
Tags
Return values
mixed

Search results