
Public Member Functions | |
| convertSpunQToRaw ($value) | |
| Converts an application value to a raw value. | |
| convertRawToSpunQ ($messagePrefix, &$value) | |
| Converts a raw value to an application value. | |
Static Public Member Functions | |
| static | getInstance () |
| Provides the singleton instance of this class. | |
Private Member Functions | |
| __construct () | |
| Constructor. | |
Static Private Attributes | |
| static | $instance = NULL |
| Singleton instance. | |
Will merely cast raw values to integers.
Definition at line 7 of file IntegerFieldConverter.class.php.
| spunQ_IntegerFieldConverter::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.) |
Implements spunQ_IFieldValueConverter.
Definition at line 44 of file IntegerFieldConverter.class.php.
| spunQ_IntegerFieldConverter::convertSpunQToRaw | ( | $ | value | ) |
Converts an application value to a raw value.
| $value | The value to convert. |
Implements spunQ_IFieldValueConverter.
Definition at line 34 of file IntegerFieldConverter.class.php.
1.5.9