\Pop\FormFields

Form fields config class

Summary

Methods
Properties
Constants
create()
getConfigFromTable()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

create()

create(string  $name, array  $field) : \Pop\Form\Element\AbstractElement

Static factory method to create a field element object from a field config array

Parameters

string $name
array $field

Throws

\Pop\Form\Exception

Returns

\Pop\Form\Element\AbstractElement

getConfigFromTable()

getConfigFromTable(array  $tableInfo, array  $attribs = null, array  $config = null, mixed  $omit = null) : array

Static factory method to get field configs from a database table

Parameters

array $tableInfo
array $attribs
array $config
mixed $omit

Throws

\Pop\Form\Exception

Returns

array