ValidateUtils
in package
Table of Contents
- isNotEqualFalse() : bool
- parseInt() : mixed
- validateAdults() : int|false
- validateBool() : bool
- validateChildren() : int|false
- validateCommaSeparatedIds() : array<string|int, int>
- validateIds() : array<string|int, int>
- validateInt() : int|false
- validateOrder() : mixed
- validateRelation() : mixed
Methods
isNotEqualFalse()
public
static isNotEqualFalse(bool $value) : bool
Parameters
- $value : bool
Return values
bool —parseInt()
public
static parseInt(mixed $value[, mixed $min = null ][, mixed $max = null ]) : mixed
Parameters
- $value : mixed
- $min : mixed = null
- $max : mixed = null
Return values
mixed —validateAdults()
public
static validateAdults(mixed $value) : int|false
Parameters
- $value : mixed
Tags
Return values
int|false —validateBool()
public
static validateBool(mixed $value) : bool
Parameters
- $value : mixed
Return values
bool —validateChildren()
public
static validateChildren(mixed $value) : int|false
Parameters
- $value : mixed
Tags
Return values
int|false —validateCommaSeparatedIds()
public
static validateCommaSeparatedIds(string $value) : array<string|int, int>
Parameters
- $value : string
Return values
array<string|int, int> —validateIds()
public
static validateIds(array<string|int, mixed> $values) : array<string|int, int>
Parameters
- $values : array<string|int, mixed>
Return values
array<string|int, int> —validateInt()
public
static validateInt(mixed $value[, int $min = null ][, int $max = null ]) : int|false
Parameters
- $value : mixed
- $min : int = null
-
Optional.
- $max : int = null
-
Optional.
Return values
int|false —Validated number or FALSE if the filter fails.
validateOrder()
public
static validateOrder(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —validateRelation()
public
static validateRelation(mixed $value) : mixed
Parameters
- $value : mixed