Form_Builder
final class Form_Builder
A class to automate the creation of timers through form submissions.
Constants
| FORM_BASE_NAME |
|
| FORM_NONCE_NAME |
|
| FORM_NONCE_ACTION |
|
Methods
Return the registered Timer classes.
Enqueue the scripts and styles for the form builder.
Register a Timer with the Form Builder.
Print the Timer builder form.
Get a submitted Timer form or return NULL if it does not exist.
Takes the name of a timer form submitted and the desired timer ID and creates a new Timer instance from it.
A function to generate a name for form inputs.
Details
at line 45
final static string[]
get_timer_classes()
Return the registered Timer classes.
at line 52
final static
enqueue_form_builder_scripts()
Enqueue the scripts and styles for the form builder.
at line 62
final static
add_timer_class(string $class_name)
Register a Timer with the Form Builder.
at line 80
final static
print_form(string $group)
Print the Timer builder form.
at line 91
final static null|array
get_form(string $group)
Get a submitted Timer form or return NULL if it does not exist.
at line 108
final static null|WP_Error|Timer
generate_timer_from_form(string $group, string $id, array $options)
Takes the name of a timer form submitted and the desired timer ID and creates a new Timer instance from it.
at line 137
final static string
generate_form_input_name(string $group, string|array $input)
A function to generate a name for form inputs.