EPL_FORM_BUILDER Class
| Since | |
|---|---|
2.3 |
|
| Methods | ||||||||
|---|---|---|---|---|---|---|---|---|
public
|
__construct(array $config = [])
Get things going
Get things going Parameters
Since
|
# | ||||||
public
|
__destruct(): void
Call default & user submitted callbacks for this form upon form submission
Call default & user submitted callbacks for this form upon form submission Since
|
# | ||||||
public
|
__get(string $key): string
Call default & user submitted callbacks for this form upon form submission
Call default & user submitted callbacks for this form upon form submission Parameters
Since
|
# | ||||||
public
|
callbacks()
Callbacks
Callbacks Since
|
# | ||||||
public
|
get_configuration(string $key = ''): bool|mixed
Set form configuration
Set form configuration Parameters
Since
|
# | ||||||
public
|
get_value(string $field): mixed|string
Get value
Get value Parameters
Since
|
# | ||||||
public
|
set_form_classes()
Set form classes
Set form classes Since
|
# | ||||||
public
|
invalid_attributes()
List of invalid attributes per field type that must be removed from field array before field rendering
List of invalid attributes per field type that must be removed from field array before field rendering Since
|
# | ||||||
public
|
get_class(string $key = '', array $field = []): string
Get classes for wrappers, form , fields
Get classes for wrappers, form , fields Parameters
Since
|
# | ||||||
public
|
get_attributes(array $field): string
Get Field Attributes
Get Field Attributes Parameters
Since
|
# | ||||||
public
|
set_form_attributes(string|array $key = '', string $value = '')
The public function can be used to configure the attributes of form
The public function can be used to configure the attributes of form Parameters
Since
|
# | ||||||
public
|
add_sections(array $sections = [])
Add multiple form sections at once
Add multiple form sections at once Parameters
Since
|
# | ||||||
public
|
add_section(array $section = [])
Add single section to form
Add single section to form Parameters
Since
|
# | ||||||
public
|
add_field(array $field = [])
Add single field to form
Add single field to form Parameters
Since
|
# | ||||||
public
|
add_fields(array $fields = [])
Add multiple form fields at once
Add multiple form fields at once Parameters
Since
|
# | ||||||
public
|
render_form()
Render form html based on the fields & form attributes
Render form html based on the fields & form attributes Since
|
# | ||||||
public
|
render_form_container_open()
Render form container opening tag
Render form container opening tag Since
|
# | ||||||
public
|
render_form_container_close()
Render form container closing tag
Render form container closing tag Since
|
# | ||||||
public
|
render_form_open()
Render form opening tag
Render form opening tag Since
|
# | ||||||
public
|
render_form_close()
Render form closing tag
Render form closing tag Since
|
# | ||||||
public
|
render_field_container_open()
Render field container opening tag
Render field container opening tag Since
|
# | ||||||
public
|
render_field_container_close()
Render field container closing tag
Render field container closing tag Since
|
# | ||||||
public
|
render_field_label(array $field = [])
Render field label
Render field label Parameters
Since
|
# | ||||||
public
|
add_nonce(string $action = '')
Render nonce field
Render nonce field Parameters
Since
|
# | ||||||
| Properties | |||
|---|---|---|---|
public
|
array
|
$form_fields = []
Form fields.
Form fields. |
# |
public
|
array
|
$form_sections = []
Form sections.
Form sections. |
# |
public
|
array
|
$configuration = []
Settings of the form.
Settings of the form. |
# |
public
|
bool
|
$has_nonce = false
Security field.
Security field. |
# |
public
|
array
|
$form_attributes = []
Form options.
Form options. |
# |
public
|
array
|
$nonce_key
nonce key.
nonce key. |
# |
public
|
array
|
$nonce_value
nonce value.
nonce value. |
# |