JSON type
The extension provides a custom type to persist arbitrary form values as JSON data to the database. This allows to dynamically persist values in a relatively easy and maintainable way, since the provided type implements TYPO3 core API. The resulting values are actually JSON-encoded strings.
- class JsonType
-
- Fully qualified name
-
\Elias
Haeussler\ Typo3Form Consent\ Type\ Json Type
Type implementing TYPO3's
\TYPO3\
that accepts and stores JSON-encoded strings.CMS\ Core\ Type\ Type Interface
Type transformers
Type transformers describe a way how specific data can be modified so that persistence of its value into the database is assured. All returned types are JSON types.
- interface TypeTransformer
-
- Fully qualified name
-
\Elias
Haeussler\ Typo3Form Consent\ Type\ Transformer\ Type Transformer
Interface used to transform a given value to a persistable JSON type.
The extension ships with two type transformers:
\Elias
: Used to transform the current form request parameters to JSON type in order to allow resubmission of the given formHaeussler\ Typo3Form Consent\ Type\ Transformer\ Form Request Type Transformer \Elias
: Used to transform all submitted form values to JSON type in order to store them next to the generated form consentHaeussler\ Typo3Form Consent\ Type\ Transformer\ Form Values Type Transformer
See also
View the sources on GitHub: