FormModelBuilderDB
extends FormModelBuilder
in package
Tags
Table of Contents
- CONFIG_FIELDS = 'fields'
- $_pFieldnames : Fieldnames
- $_pInputModelDBFactory : InputModelDBFactory
- $_values : array<string|int, mixed>
- createButtonModelFieldsConfigByCategory() : InputModelDB
- createInputModelFieldsConfigByCategory() : InputModelDB
- createInputModelName() : InputModelDB
- createInputModelRecordsPerPage() : InputModelDB
- createInputModelSortBy() : InputModelDB
- createInputModelSortOrder() : InputModelDB
- createInputModelTemplate() : InputModelDB
- createSortableFieldList() : InputModelDB
- generate() : FormModel
- getOnlyDefaultSortByFields() : array<string|int, mixed>
- setValues() : mixed
- getFieldnames() : Fieldnames
- getInputModelDBFactory() : InputModelDBFactory
- getValue() : mixed
- readExposes() : array<string|int, mixed>
- readFieldnames() : array<string|int, mixed>
- readFilters() : array<string|int, mixed>
- readTemplatePaths() : array<string|int, mixed>
- setFieldnames() : mixed
- setInputModelDBFactory() : mixed
Constants
CONFIG_FIELDS
public
mixed
CONFIG_FIELDS
= 'fields'
Properties
$_pFieldnames
private
Fieldnames
$_pFieldnames
= null
$_pInputModelDBFactory
private
InputModelDBFactory
$_pInputModelDBFactory
= null
$_values
private
array<string|int, mixed>
$_values
= array()
Methods
createButtonModelFieldsConfigByCategory()
public
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
createInputModelFieldsConfigByCategory(string $category, array<string|int, mixed> $fieldNames, string $categoryLabel) : InputModelDB
Parameters
- $category : string
- $fieldNames : array<string|int, mixed>
- $categoryLabel : string
Return values
InputModelDB —createInputModelName()
public
createInputModelName() : InputModelDB
Return values
InputModelDB —createInputModelRecordsPerPage()
public
createInputModelRecordsPerPage() : InputModelDB
Return values
InputModelDB —createInputModelSortBy()
public
createInputModelSortBy(string $module) : InputModelDB
Parameters
- $module : string
Return values
InputModelDB —createInputModelSortOrder()
public
createInputModelSortOrder() : InputModelDB
Return values
InputModelDB —createInputModelTemplate()
public
createInputModelTemplate(string $path) : InputModelDB
Parameters
- $path : string
Return values
InputModelDB —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 —getOnlyDefaultSortByFields()
public
getOnlyDefaultSortByFields(string $module) : array<string|int, mixed>
Parameters
- $module : string
Return values
array<string|int, mixed> —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 —getInputModelDBFactory()
protected
getInputModelDBFactory() : InputModelDBFactory
Return values
InputModelDBFactory —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
Return values
mixed —setInputModelDBFactory()
protected
setInputModelDBFactory(InputModelDBFactory $pInputModelDBFactory) : mixed
Parameters
- $pInputModelDBFactory : InputModelDBFactory