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