Class Form
A <FORM>
element.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
- Brickrouge\Element implements ArrayAccess, IteratorAggregate, Brickrouge\HTMLStringInterface
- Brickrouge\Form implements Brickrouge\Validator
Direct known subclasses
Icybee\DeleteBlock
,
Icybee\Element\Form
,
Icybee\Modules\Users\Roles\ManageBlock
,
Icybee\Installer\PanelForm
,
Icybee\Modules\Comments\SubmitForm
,
Icybee\Modules\Forms\ContactForm
,
Icybee\Modules\Forms\PressContactForm
,
Icybee\Modules\Forms\QuickContactForm
,
Icybee\Modules\Nodes\ExportBlock
,
Icybee\Modules\Users\LoginForm
,
Icybee\Modules\Users\NonceLogin\NonceRequestForm
Indirect known subclasses
Icybee\Installer\DatabaseForm
,
Icybee\Installer\SiteForm
,
Icybee\Modules\Users\DeleteBlock
,
Icybee\Modules\Users\Roles\DeleteBlock
,
Icybee\Installer\UserForm
,
Icybee\Modules\Comments\DeleteBlock
,
Icybee\Modules\Contents\DeleteBlock
,
Icybee\Modules\Nodes\DeleteBlock
,
Icybee\Modules\Pages\ExportBlock
,
Icybee\Modules\Sites\DeleteBlock
,
Icybee\Modules\Taxonomy\Terms\DeleteBlock
,
Icybee\Modules\Taxonomy\Vocabulary\DeleteBlock
Methods summary
protected static
string
|
|
public
|
#
__construct( array $attributes = array() )
Default attributes are added to those provided using a union: |
public
string
|
|
public
|
#
offsetSet( string $offset, mixed $value )
Override the method to map the |
public
|
|
public
array
|
#
__sleep( )
The method alters the |
protected
string
|
|
protected
string|null
|
#
render_inner_html( )
Add hidden input elements and log messages to the inner HTML of the element being converted to a string. |
protected
string
|
|
protected
string
|
|
protected
|
#
alter_elements( array $values, boolean $disabled, array|
Alters the elements according to the state of the form. |
public
string
|
|
public static
|
|
public static
boolean
|
|
public static
|
|
public
boolean
|
#
validate( mixed $values,
Validates the form using the provided values. |
protected
|
#
validate_required_elements( array $required, array & $validators, array $values,
|
public static
|
|
public static
|
|
public static
|
|
public static
|
Methods inherited from Brickrouge\Element
add_assets()
,
add_class()
,
adopt()
,
alter_attributes()
,
alter_class_names()
,
alter_dataset()
,
auto_element_id()
,
decorate()
,
decorate_with_description()
,
decorate_with_inline_help()
,
decorate_with_label()
,
decorate_with_legend()
,
get_attributes()
,
get_class()
,
get_dataset()
,
get_ordered_children()
,
handle_assets()
,
has_class()
,
lazy_get_id()
,
offsetExists()
,
offsetGet()
,
offsetUnset()
,
remove_class()
,
render()
,
render_attributes()
,
render_child()
,
render_class()
,
render_dataset()
,
render_inner_html_for_checkbox_group()
,
render_inner_html_for_radio_group()
,
render_inner_html_for_select()
,
render_inner_html_for_textarea()
,
render_outer_html()
,
set_class()
,
set_dataset()
Methods inherited from ICanBoogie\Object
from()
,
resolve_facade_properties()
,
resolve_private_properties()
,
to_array()
,
to_json()
Methods inherited from ICanBoogie\ToArrayRecursive
Methods used from ICanBoogie\ToArrayRecursiveTrait
Methods used from ICanBoogie\PrototypeTrait
__call()
,
__get()
,
__set()
,
__wakeup()
,
get_prototype()
,
has_method()
,
has_property()
,
last_chance_get()
,
last_chance_set()
Magic methods summary
Constants summary
boolean |
DISABLED
|
'#form-disabled' |
#
Set to true to disable all the elements of the form. |
array[string]mixed |
HIDDENS
|
'#form-hiddens' |
#
Used to provide hidden values. Each key/value pair of the array is used to
create an hidden input element with key as |
string |
LABEL_COMPLEMENT
|
'#form-label-complement' |
#
Complement to the |
boolean |
NO_LOG
|
'#form-no-log' |
#
If true possible alert messages are not displayed. |
array |
VALUES
|
'#form-values' |
#
Values for the elements of the form. The form recursively iterates through its children to set their values, if their values it not already set (e.g. non null). |
string |
RENDERER
|
'#form-renderer' |
#
The class name of the renderer to use to render the children of the form. If no renderer is defined, children are simply concatenated. |
boolean|array|string |
ACTIONS
|
'#form-actions' |
#
Defines the actions of the form. |
string |
ERRORS
|
'#form-errors' |
|
string |
STORED_KEY_NAME
|
'_brickrouge_form_key' |
Constants inherited from Brickrouge\Element
CHILDREN
,
DEFAULT_VALUE
,
DESCRIPTION
,
GROUP
,
GROUPS
,
INLINE_HELP
,
INNER_HTML
,
LABEL
,
LABEL_MISSING
,
LABEL_POSITION
,
LEGEND
,
OPTIONS
,
OPTIONS_DISABLED
,
REQUIRED
,
STATE
,
TYPE_CHECKBOX
,
TYPE_CHECKBOX_GROUP
,
TYPE_RADIO
,
TYPE_RADIO_GROUP
,
VALIDATOR
,
VALIDATOR_OPTIONS
,
WEIGHT
,
WIDGET_CONSTRUCTOR
Properties summary
protected static
integer
|
$auto_name_index | |
public
string
|
$name |
#
Name of the form. |
protected
array[string]Element
|
$required |
#
The required elements of the form. |
protected
array[string]
|
$booleans |
#
Booleans found in the form. |
protected
array[string]Element
|
$validators |
#
Elements of the form with a validator. |
protected
callable
|
$validator |
#
Validator callback of the form. |
Properties inherited from Brickrouge\Element
$auto_element_id
,
$children
,
$class_names
,
$inner_html
,
$tag_name
,
$tags
,
$type