FormModelBuilder
in package
Tags
Table of Contents
- CONFIG_FIELDS = 'fields'
- $_pFieldnames : Fieldnames
- $_values : array<string|int, mixed>
- createButtonModelFieldsConfigByCategory() : InputModelDB
- createInputModelFieldsConfigByCategory() : mixed
- createSortableFieldList() : InputModelDB
- generate() : FormModel
- setValues() : mixed
- getFieldnames() : Fieldnames
- getValue() : mixed
- readExposes() : array<string|int, mixed>
- readFieldnames() : array<string|int, mixed>
- readFilters() : array<string|int, mixed>
- readTemplatePaths() : array<string|int, mixed>
- setFieldnames() : mixed
Constants
CONFIG_FIELDS
public
mixed
CONFIG_FIELDS
= 'fields'
Properties
$_pFieldnames
private
Fieldnames
$_pFieldnames
= null
$_values
private
array<string|int, mixed>
$_values
= array()
Methods
createButtonModelFieldsConfigByCategory()
public
abstract createButtonModelFieldsConfigByCategory(string $category, array<string|int, mixed> $fieldNames, string $categoryLabel) : InputModelDB
Parameters
- $category : string
- $fieldNames : array<string|int, mixed>
- $categoryLabel : string
Return values
InputModelDB —createInputModelFieldsConfigByCategory()
public
abstract createInputModelFieldsConfigByCategory(mixed $category, mixed $fieldNames, mixed $categoryLabel) : mixed
Parameters
- $category : mixed
- $fieldNames : mixed
- $categoryLabel : mixed
Return values
mixed —createSortableFieldList()
public
createSortableFieldList(string $module, string $htmlType) : InputModelDB
Parameters
- $module : string
- $htmlType : string
Return values
InputModelDB —generate()
public
abstract generate(string $pageSlug) : FormModel
Parameters
- $pageSlug : string
Return values
FormModel —setValues()
public
setValues(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
Return values
mixed —getFieldnames()
protected
getFieldnames() : Fieldnames
Return values
Fieldnames —getValue()
protected
getValue(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
Return values
mixed —readExposes()
protected
readExposes() : array<string|int, mixed>
Return values
array<string|int, mixed> —readFieldnames()
protected
readFieldnames(string $module[, bool $withInactive = false ]) : array<string|int, mixed>
Parameters
- $module : string
- $withInactive : bool = false
Return values
array<string|int, mixed> —readFilters()
protected
readFilters(mixed $module) : array<string|int, mixed>
Parameters
- $module : mixed
Return values
array<string|int, mixed> —readTemplatePaths()
protected
readTemplatePaths( $directory[, $pattern = '*' ]) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —setFieldnames()
protected
setFieldnames(Fieldnames $pFieldnames) : mixed
Parameters
- $pFieldnames : Fieldnames