public static function IntegerPropertyType::validate in Entity Construction Kit (ECK) 7.3
Validate.
Overrides PropertyTypeInterface::validate
1 call to IntegerPropertyType::validate()
- PositiveIntegerPropertyType::validate in ./
eck.property_type.inc - Validate.
1 method overrides IntegerPropertyType::validate()
- PositiveIntegerPropertyType::validate in ./
eck.property_type.inc - Validate.
File
- ./
eck.property_type.inc, line 270 - Property types.
Class
Code
public static function validate($value) {
$number = filter_var($value, FILTER_VALIDATE_INT);
return $number !== FALSE;
}