Grid_Factory

A factory for creating Document_Grid objects.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

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

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
Return values
string

Search results