Form
class Form implements IteratorAggregate (View source)
The Form class.
Methods
Class init.
addFields
Add a field.
addField
Method to set property fieldNamespaces
Method to set property fieldNamespaces
Method to set property fieldNamespaces
Retrieve an external iterator
getField
removeField
removeField
getFields
Method to get property Fieldsets
Method to get property Groups
setAttribute
getAttribute
setAttributes
appendAttributes
reset
validate
getViews
prepareStore
renderField
renderFields
Method to get property Control
Method to set property control
Method to get property Errors
getValues
Method to get property FieldRenderHandler
Details
at line line 92
__construct(string $control = '')
Class init.
at line line 104
Form
loadXml(string|SimpleXMLElement $xml)
load
at line line 143
Form
addFields(Traversable|SimpleXMLElement $fields, string $fieldset = null, string $group = null)
addFields
at line line 168
AbstractField|ListField
add(string $name, AbstractField|string $field = null, string $fieldset = null, string $group = null)
Add a field.
at line line 201
AbstractField|ListField
addField(string|AbstractField|SimpleXMLElement $field, string $fieldset = null, string $group = null)
addField
at line line 295
Form
addFieldNamespace(string $ns, int $priority = 256)
Method to set property fieldNamespaces
at line line 310
Form
addFilterNamespace(string $ns, int $priority = 256)
Method to set property fieldNamespaces
at line line 325
Form
addValidatorNamespace(string $ns, int $priority = 256)
Method to set property fieldNamespaces
at line line 337
Iterator|AbstractField[]
getIterator()
Retrieve an external iterator
at line line 349
CallbackFilterIterator|AbstractField[]
getCallbackIterator(Closure $handler)
getCallbackIterator
at line line 362
AbstractField
getField(string $name, string $group = '')
getField
at line line 380
$this
removeField(string $name, string $group = null)
removeField
at line line 403
$this
removeFields(string $fieldset = null, string $group = null)
removeField
at line line 429
AbstractField[]
getFields(string $fieldset = null, string $group = null)
getFields
at line line 463
array
getFieldsets()
Method to get property Fieldsets
at line line 473
array
getGroups()
Method to get property Groups
at line line 488
Form
setAttribute(string $field, string $name, mixed $value, string $group = null)
setAttribute
at line line 510
mixed
getAttribute(string $field, string $name, mixed $default = null, string $group = null)
getAttribute
at line line 532
Form
setAttributes(string $name, mixed $value, string $fieldset = null, string $group = null)
setAttributes
at line line 552
Form
appendAttributes(string $name, mixed $value, string $fieldset = null, string $group = null)
appendAttributes
at line line 631
boolean
validate()
validate
at line line 663
array
getViews(string $fieldset = null, string $group = null)
getViews
at line line 686
void
prepareStore(string $fieldset = null, string $group = null)
prepareStore
at line line 702
string
renderField(string $name, string $group = '')
renderField
at line line 717
string
renderFields(string $fieldset = null, string $group = null)
renderFields
at line line 734
string
getControl()
Method to get property Control
at line line 765
$this
defineFormFields(FieldDefinitionInterface $fields)
defineFormFields
at line line 777
ValidateResult[]
getErrors()
Method to get property Errors
at line line 789
Form
setErrors(ValidateResult[] $errors)
Method to set property errors
at line line 804
$this
getValues(string $fieldset = null, string $group = null)
getValues
at line line 821
FormRendererInterface
getRenderer()
Method to get property FieldRenderHandler
at line line 833
Form
setRenderer(FormRendererInterface $renderer = null)
Method to set property fieldRenderHandler