Grid_Factory
Grid_Factory class.
Tags
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
$current_id
    private
    static    mixed
    $current_id
     = 1
        
        
    
$grids
    private
    static    mixed
    $grids
     = []
        
        
    
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