Class
Class used to implement the form field object.
Methods
-
__construct()Create a new instance.
-
add_attribute()Add an attribute.
-
add_class()Add a class.
-
get_attribute()Get an attribute.
-
get_attributes()Get all attributes.
-
get_classes()Get all classes.
-
get_content()Get the field content.
-
get_description()Get the field description.
-
get_error()Get the field error message.
-
get_form()Get the parent form of the field.
-
get_label()Get the field label.
-
get_name()Get the field name.
-
get_options()Get the field options.
-
get_priority()Get the priority of the field.
-
get_type()Get the field type.
-
get_value()Get the field value.
-
has_class()Determine if the field has a given class.
-
remove_attribute()Remove an attribute.
-
remove_class()Remove a class.
-
render()Render the field.
-
set_content()Set the field content.
-
set_description()Set the field description.
-
set_error()Set the field error message.
-
set_form()Set the parent form of the field.
-
set_label()Set the field label.
-
set_name()protectedSet the field name.
-
set_options()Set the field options.
-
set_priority()Set the priority of the field.
-
set_type()Set the field type.
-
set_value()Set the field value.
Properties
-
$attributesarray protected - The field attributes.
-
$classesarray protected - The field classes.
-
$contentstring protected - The field content.
-
$descriptionstring protected - The field description.
-
$errorstring protected - The field error.
-
$formTheme_My_Login_Form protected - The parent form of the field.
-
$labelstring protected - The field label.
-
$namestring protected - The field name.
-
$optionsarray protected - The field options.
-
$priorityint protected - The priority of the field within the form.
-
$render_argsarray public - The arguments used for rendering the field.
-
$typestring protected - The field type.
-
$valuestring protected - The field value.
Source
View src/includes/class-theme-my-login-form-field.php, line 15 on GitHub
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |