
Public Member Functions | |
| convertSpunQToRaw ($value) | |
| Converts an application value to a raw value. | |
| convertRawToSpunQ ($messagePrefix, &$value) | |
| Converts a raw value to an application value. | |
A raw value is one that is retrieved from the POST or GET array, i.e. any combination of associtive arrays and strings. A spunQ value is any value used within the application (integer, boolean, spunQ_StorableObject, spunQ_DateTime, …).
Definition at line 10 of file IFieldValueConverter.interface.php.
| spunQ_IFieldValueConverter::convertRawToSpunQ | ( | $ | messagePrefix, | |
| &$ | value | |||
| ) |
Converts a raw value to an application value.
| $messagePrefix | String to be prefixed to translation key of validation messages. | |
| $value | The value to convert. This is also an out parameter that will contain the converted spunQ value. |
| spunQ_InvalidRawValueException | If the raw value has an unexpected type (i.e. array instead of string or vice versa.) |
Implemented in spunQ_BooleanField, spunQ_DateField, spunQ_DateTimeField, spunQ_MultipleChoiceField, spunQ_ObjectField, spunQ_SingleChoiceField, spunQ_TimeField, and spunQ_IntegerFieldConverter.
| spunQ_IFieldValueConverter::convertSpunQToRaw | ( | $ | value | ) |
Converts an application value to a raw value.
| $value | The value to convert. |
Implemented in spunQ_BooleanField, spunQ_DateField, spunQ_DateTimeField, spunQ_MultipleChoiceField, spunQ_ObjectField, spunQ_SingleChoiceField, spunQ_TimeField, and spunQ_IntegerFieldConverter.
1.5.9