Grid_Factory

Grid_Factory class.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$current_id  : mixed
$grids  : mixed
create()  : Grid
Create a new grid based on the supplied args.
fetch()  : Grid
Fetch an existing grid by ID.
generate_id()  : mixed

Properties

Methods

create()

Create a new grid based on the supplied args.

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

The args to use for the grid.

Return values
Grid

The product grid object.

fetch()

Fetch an existing grid by ID.

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

The product grid ID.

Return values
Grid

The product varriations grid object.

generate_id()

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

Search results