Documentation

Table
in package
Uses MakeGuard

A class Table object

Tags
psalm-suppress

UnusedClass

Table of Contents

$table  : string
__construct()  : mixed
Constructor
add()  : bool
Add a new table
edit()  : array<, mixed>
Handle a bean edit
fields()  : array<, string>
Return the fields in this table
guard()  : string
Return the CSRFGuard inputs for inclusion in a form;
hasField()  : bool
Test if a field exists
name()  : string
Return the name of the table
startEdit()  : void
Setup for an edit
view()  : void
View a Bean

Properties

$table

private string $table

The name of the table

Methods

__construct()

Constructor

public __construct(string $name) : mixed
Parameters
$name : string

The name of the table

Return values
mixed

add()

Add a new table

public static add(Context $context) : bool
Parameters
$context : Context

The context object

Return values
bool

edit()

Handle a bean edit

public edit(Context $context, array<, mixed> $rest) : array<, mixed>
Parameters
$context : Context

The context object

$rest : array<, mixed>
Tags
phpcsSuppress

SlevomatCodingStandard.Functions.UnusedParameter

Return values
array<, mixed>

fields()

Return the fields in this table

public fields() : array<, string>
Return values
array<, string>

guard()

Return the CSRFGuard inputs for inclusion in a form;

public guard() : string
Return values
string

hasField()

Test if a field exists

public hasField(string $fld) : bool
Parameters
$fld : string

The field name

Return values
bool

name()

Return the name of the table

public name() : string
Return values
string

startEdit()

Setup for an edit

public startEdit(Context $context, array<, mixed> $rest) : void
Parameters
$context : Context

The context object

$rest : array<, mixed>

The rest of the URL

Return values
void

view()

View a Bean

public view(Context $context, array<, mixed> $rest) : void
Parameters
$context : Context

The context object

$rest : array<, mixed>
Return values
void

Search results