Contains the schema information for Form instances.
array
The default values for fields.
array
The fields in this schema.
__debugInfo()
Get the printable version of this object
array
addField(string $name, mixed $attrs)
Adds a field to the schema.
string
$name The field name.
string|array
$attrs The attributes for the field, or the type as a string.
$this
addFields(array $fields)
Add multiple fields to the schema.
array
$fields The fields to add.
$this
field(string $name)
Get the attributes for a given field.
string
$name The field name.
array|null
The attributes for a field, or null.
fieldType(string $name)
Get the type of the named field.
string
$name The name of the field.
string|null
Either the field type or null if the field does not exist.
fields()
Get the list of fields in the schema.
string[]
The list of field names.
removeField(string $name)
Removes a field to the schema.
string
$name The field to remove.
$this
The default values for fields.
array
The fields in this schema.
array
© 2005–present 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/4.1/class-Cake.Form.Schema.html