Grid_Factory
A factory for creating Document_Grid objects.
Tags
Table of Contents
- $current_id : mixed
- $grids : mixed
- create() : Document_Grid
- Create new grid based on the supplied args.
- fetch() : Document_Grid
- Fetch an existing grid by ID.
- generate_id() : string
- Generate an ID for the Grid.
Properties
$current_id
private
static mixed
$current_id
= 1
$grids
private
static mixed
$grids
= []
Methods
create()
Create new grid based on the supplied args.
public
static create(array<string|int, mixed> $args) : Document_Grid
Parameters
- $args : array<string|int, mixed>
-
The args to use for the table.
Return values
Document_Grid —The document grid object.
fetch()
Fetch an existing grid by ID.
public
static fetch(string $id) : Document_Grid
Parameters
- $id : string
-
The document grid ID.
Return values
Document_Grid —The document grid object.
generate_id()
Generate an ID for the Grid.
private
static generate_id(mixed $args) : string
Parameters
- $args : mixed