final class ColumnsDefinition (View source)

Displays the form used to define the structure of the table

Methods

__construct(DatabaseInterface $dbi, Relation $relation, Transformations $transformations)

No description

array
displayForm(UserPrivileges $userPrivileges, string $action, int $numFields = 0, array|null $selected = null, array|null $fieldsMeta = null)

No description

static array
decorateColumnMetaDefault(string $type, string|null $default, bool $isNull)

Set default type and default value according to the column metadata

Details

__construct(DatabaseInterface $dbi, Relation $relation, Transformations $transformations)

No description

Parameters

DatabaseInterface $dbi
Relation $relation
Transformations $transformations

array displayForm(UserPrivileges $userPrivileges, string $action, int $numFields = 0, array|null $selected = null, array|null $fieldsMeta = null)

No description

Parameters

UserPrivileges $userPrivileges
string $action
int $numFields

The number of fields

array|null $selected Selected
array|null $fieldsMeta

Return Value

array

static array decorateColumnMetaDefault(string $type, string|null $default, bool $isNull)

Set default type and default value according to the column metadata

Parameters

string $type
string|null $default
bool $isNull

Return Value

array