CustomField
CustomField
CustomField
Turn an array of dynamic field information into a custom field
- Full name: \Gibbon\Forms\Input\CustomField
- Parent class: \Gibbon\Forms\Input\Input
Methods
- __construct — Creates a variable input type from a passed row of custom field settings (often from the database).
- setValue — Sets the value of the custom field depending on it’s internal type.
- getValidationOutput — Get the validation output from the internal Input object.
Inherited from Element
Inherited from Input
- setRow
- addValidationOption
- addValidation
- isValidatable
- hasValidation
- getValidationAsJSON
- getValidationOutput
Inherited from InputAttributesTrait
- setName
- getName
- setValue
- getValue
- loadFrom
- loadFromCSV
- setSize
- getSize
- isDisabled
- setDisabled
- getDisabled
- isRequired
- setRequired
- getRequired
- readonly
- setReadonly
- getReadonly
- setTabIndex
- getTabIndex
Inherited from Element
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
__construct
Creates a variable input type from a passed row of custom field settings (often from the database).
CustomField::__construct( \Gibbon\Forms\FormFactoryInterface $factory, string $name, array $fields )
setValue
Sets the value of the custom field depending on it’s internal type.
CustomField::setValue( mixed $value = '' )
getValidationOutput
Get the validation output from the internal Input object.
CustomField::getValidationOutput( ): string
Return Value:
string