Form abstraction used to create forms not tied to ORM backed models, or to other permanent datastores. Ideal for implementing forms on top of API services, or contact forms. ### Building a form This class is most useful when subclassed. In a subclass you should define the `_buildSchema`, `validationDefault` and optionally, the `_execute` methods. These allow you to declare your form`s fields, validation and primary action respectively. Forms are conventionally placed in the `App\Form` namespace. @implements \UIM\Event\IEventDispatcher<\UIM\Form\Form>
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
void | void setErrors(Json[string] errors) | ||||
Json[string] | Json[string] debugInfo(string[] hideKeys = null) | ||||
bool | bool _execute(Json[string] formData) | ||||
IForm | IForm set(Json[string] newData) | ||||
bool | bool execute(Json[string] data, Json[string] options = null) | ||||
bool | bool initialize(Json[string] initData = null) | ||||
DSchema | DSchema _buildSchema(DSchema tableSchema) | ||||
void | void data(Json[string] items) | ||||
bool | bool hasKey(string key) | ||||
void | void schema(DSchema newSchema) | ||||
Json | Json getError(string fieldName) | ||||
this(DEventManager | this(DEventManager eventManager = null) | ||||
Json[string] | Json[string] data() | ||||
IEvent[] | IEvent[] implementedEvents() | ||||
Json[string] | Json[string] get(string[] keys) | ||||
Json | Json get(string key, Json defaultValue = Json(null)) | ||||
Json | Json getData(string fieldName = null) | ||||
DSchema | DSchema schema() | ||||
Json[string] | Json[string] getErrors() | ||||
bool | bool validate(Json[string] data, string validatorName = null) |