Contains the schema information for Form instances.
$_fieldDefaults
protected array
$_fields
protected array
addField( string $name , string|array $attrs )
Adds a field to the schema.
$name
$attrs
The attributes for the field, or the type as a string.
addFields( array $fields )
Add multiple fields to the schema.
$fields
field( string $name )
Get the attributes for a given field.
$name
fieldType( string $name )
Get the type of the named field.
$name
Either the field type or null if the field does not exist.
fields( )
Get the list of fields in the schema.
removeField( string $name )
Removes a field to the schema.
$name
protected array
The default values for fields.
[ 'type' => null, 'length' => null, 'precision' => null, ]
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Form.Schema.html