Interface for declaration of method for validate a specific parameter type.<br/> If you want to implement your own type validator, you need only to implement
see |
|
---|---|
package |
Default |
__construct()
createArrayTypeValidator( $arg0, $arg1 = null, $arg2 = null, $arg3 = null) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
param $arrayMembersValidator [ParameterTypeValidator] Type validator that describe array items. It can't be null createArrayTypeValidator($arrayMembersValidator)
Create an array type validator
param $arrayMembersValidator [ParameterTypeValidator] Type validator that describe array items. It can't be null param $collectionFormat [string] String that represent a ContainerSerializationStyle. Check out \ContainerSerializationStyle for more informations. The default value is "csv". It can be null param $maxItems [integer] Maximum items in array. It can be null param $minItems [integer] Minimum items in array. It can be null createArrayTypeValidator($arrayMembersValidator, $collectionFormat, $maxItems, $minItems)
ParameterTypeValidator
string
integer
integer
\io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
createBooleanTypeValidator( $arg0) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
createDoubleTypeValidator( $arg0, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null, $arg5 = null) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
param $defaultValue [float] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createDoubleTypeValidator($defaultValue)
Create a new type validator for double values
param $maximum [float] Maximum value. It can be null param $minimum [float] Minimum value. It can be null param $multipleOf [float] Multiple of value. It can be null param $defaultValue [float] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createDoubleTypeValidator($maximum, $minimum, $multipleOf, $defaultValue)
Create a new type validator for double values
param $exclusiveMaximum [boolean] If true, value will be mark as valid if value < maximum. If false, value will be mark as valid if value <= maximum. The default value is false. It can be null param $maximum [float] Maximum value. It can be null param $exclusiveMinimum [boolean] If true, value will be mark as valid if value > minimum. If false, value will be mark as valid if value >= minimum. The default value is false. It can be null param $minimum [float] Minimum value. It can be null param $multipleOf [float] Multiple of value. It can be null param $defaultValue [mixed] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createDoubleTypeValidator($exclusiveMaximum, $maximum, $exclusiveMinimum, $minimum, $multipleOf, $defaultValue)
boolean | float
float
boolean | float
float
float
mixed
\io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
createEnumTypeValidatorWithInnerValidator( $arg0, $arg1) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
array
ParameterTypeValidator
\io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
createFloatTypeValidator( $arg0, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null, $arg5 = null) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
param $defaultValue [float] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createFloatTypeValidator($defaultValue)
Create a new type validator for float values
param $maximum [float] Maximum value. It can be null param $minimum [float] Minimum value. It can be null param $multipleOf [float] Multiple of value. It can be null param $defaultValue [float] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createFloatTypeValidator($maximum, $minimum, $multipleOf, $defaultValue)
Create a new type validator for float values
param $exclusiveMaximum [boolean] If true, value will be mark as valid if value < maximum. If false, value will be mark as valid if value <= maximum. The default value is false. It can be null param $maximum [float] Maximum value. It can be null param $exclusiveMinimum [boolean] If true, value will be mark as valid if value > minimum. If false, value will be mark as valid if value >= minimum. The default value is false. It can be null param $minimum [float] Minimum value. It can be null param $multipleOf [float] Multiple of value. It can be null param $defaultValue [mixed] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createFloatTypeValidator($exclusiveMaximum, $maximum, $exclusiveMinimum, $minimum, $multipleOf, $defaultValue)
boolean | float
float
boolean | float
float
float
mixed
\io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
createIntegerTypeValidator( $arg0, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null, $arg5 = null) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
param $defaultValue [integer] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createIntegerTypeValidator($defaultValue)
Create a new type validator for integer values
param $maximum [float] Maximum value. It can be null param $minimum [float] Minimum value. It can be null param $multipleOf [float] Multiple of value. It can be null param $defaultValue [integer] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createIntegerTypeValidator($maximum, $minimum, $multipleOf, $defaultValue)
Create a new type validator for integer values
param $exclusiveMaximum [boolean] If true, value will be mark as valid if value < maximum. If false, value will be mark as valid if value <= maximum. The default value is false. It can be null param $maximum [float] Maximum value. It can be null param $exclusiveMinimum [boolean] If true, value will be mark as valid if value > minimum. If false, value will be mark as valid if value >= minimum. The default value is false. It can be null param $minimum [float] Minimum value. It can be null param $multipleOf [float] Multiple of value. It can be null param $defaultValue [mixed] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createIntegerTypeValidator($exclusiveMaximum, $maximum, $exclusiveMinimum, $minimum, $multipleOf, $defaultValue)
boolean | integer | float
float
boolean | float
integer | float
float
mixed
\io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
createLongTypeValidator( $arg0, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null, $arg5 = null) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
param $defaultValue [integer] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createLongTypeValidator($defaultValue)
Create a new type validator for long integer values
param $maximum [float] Maximum value. It can be null param $minimum [float] Minimum value. It can be null param $multipleOf [float] Multiple of value. It can be null param $defaultValue [integer] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createLongTypeValidator($maximum, $minimum, $multipleOf, $defaultValue)
Create a new type validator for long integer values
param $exclusiveMaximum [boolean] If true, value will be mark as valid if value < maximum. If false, value will be mark as valid if value <= maximum. The default value is false. It can be null param $maximum [float] Maximum value. It can be null param $exclusiveMinimum [boolean] If true, value will be mark as valid if value > minimum. If false, value will be mark as valid if value >= minimum. The default value is false. It can be null param $minimum [float] Minimum value. It can be null param $multipleOf [float] Multiple of value. It can be null param $defaultValue [mixed] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createLongTypeValidator($exclusiveMaximum, $maximum, $exclusiveMinimum, $minimum, $multipleOf, $defaultValue)
boolean | integer | float
float
boolean | float
integer | float
float
mixed
\io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
createStringEnumTypeValidator( $arg0) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
createStringTypeValidator( $arg0, $arg1 = null, $arg2 = null, $arg3 = null) : \io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
param $defaultValue [mixed] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createStringTypeValidator($defaultValue)
Create a new string type validator
param $pattern [string] pattern that string have to match. It can be null param $defaultValue [mixed] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createStringTypeValidator($pattern, $defaultValue)
Create a new string type validator
param $pattern [string] pattern that string have to match. It can be null param $minLength [integer] Minimum length of string. It can be null param $maxLength [integer] Maximum length of string. It can be null param $defaultValue [mixed] Default value that will be set if parameter is empty or not found. To apply default value you have to set \ParameterValidationRule#allowEmptyValue() true. It can be null createStringTypeValidator($pattern, $minLength, $maxLength, $defaultValue)
string | mixed
mixed | integer
integer
mixed
\io\vertx\jphp\ext\web\api\validation\ParameterTypeValidator
getDefault() : mixed
mixed
hasDefault() : boolean
boolean
isValid( $arg0) : \io\vertx\jphp\ext\web\api\RequestParameter
. For more info, check .
string
\io\vertx\jphp\ext\web\api\RequestParameter
request parameter value
isValidCollection( $arg0) : \io\vertx\jphp\ext\web\api\RequestParameter