This is a very simple controller class intended for usage directly without a true storage backend. Its main intent is for forms you don't need in the database directly.
The class allows you to select a schema and a set of default values suitable for the types you use in the schema.
package | midcom.helper.datamanager2 |
---|
Optionally you may set defaults and the schemaname to use as well.
string
The form identifierboolean
Indicating success.If processing is successful, (that is, not 'cancel' or 'edit').
There are several possible return values:
The form will be automatically validated for 'save' and 'next', but not for 'previous'.
Normally, all validation should be done during the Form processing, but sometimes this is not possible. These are the cases where type validation rules fail instead of form validation ones. At this time, the integration of type validation is rudimentary and will transparently return edit instead of validation.
Note, that this call does not actually execute the save call to the datamanager, there is nothing to save at this point.
todo | Integrate type validation checks cleanly. |
---|
string
One of 'save', 'cancel', 'next', 'previous', 'edit', depending on the schema
configuration.This array is indexed by field names.
If this is left to null, the first schema from the database is used instead.