CategoryParametersValidator extends ParametersValidator Uses CatalogItemsParametersValidatorTrait, IdentifiableItemsParametersValidatorTrait, PaginableItemsParametersValidatorTrait, QParametersValidatorTrait, FilterIndexableParametersValidatorTrait

This is the category parameters validation class.

Table of Contents

validate() Throws an exception if some of the given parameters is wrong  : void
invokeValidation() Invokes the needed validation with the given parameters  : bool|null
methodExists() Determines if the required method exists on the current class  : bool
validateAreaId()  : bool|null
validateAreaIdList()  : bool|null
validateAreaPId()  : bool|null
validateAreaPosition()  : bool|null
validateArray()  : bool|null
validateArrayContains()  : bool|null
validateAssociativeArray()  : bool|null
validateBoolean()  : bool|null
validateDate()  : bool|null
validateEnumerateValue()  : bool|null
validateEnumerateValues()  : bool|null
validateFilterIndexable()  : bool|null
validateId()  : bool|null
validateIdList()  : bool|null
validateItemsClass()  : bool|null
validateNumeric()  : bool|null
validateNumericList()  : bool|null
validatePage()  : bool|null
validateParentId()  : bool|null
validateParentIdList()  : bool|null
validateParentPId()  : bool|null
validatePerpage()  : bool|null
validatePId()  : bool|null
validatePositiveNumeric()  : bool|null
validateQ()  : bool|null
validateRandomItems()  : bool|null
validateScalar()  : bool|null
validateSort()  : bool|null
validateSortByIdList()  : bool|null
validateString()  : bool|null

Methods

validate()

Throws an exception if some of the given parameters is wrong

public validate(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>
Tags
throws
InvalidParameterException
Return values
void —

invokeValidation()

Invokes the needed validation with the given parameters

protected invokeValidation(string $method, mixed $paramValue) : bool|null
Parameters
$method : string
$paramValue : mixed
Return values
bool|null —

methodExists()

Determines if the required method exists on the current class

protected methodExists(string $method) : bool
Parameters
$method : string
Return values
bool —

validateAreaId()

protected validateAreaId(mixed $areaId) : bool|null
Parameters
$areaId : mixed
Return values
bool|null —

validateAreaIdList()

protected validateAreaIdList(mixed $areaIdList) : bool|null
Parameters
$areaIdList : mixed
Return values
bool|null —

validateAreaPId()

protected validateAreaPId(mixed $areaPId) : bool|null
Parameters
$areaPId : mixed
Return values
bool|null —

validateAreaPosition()

protected validateAreaPosition(mixed $areaPosition) : bool|null
Parameters
$areaPosition : mixed
Return values
bool|null —

validateArray()

protected validateArray(mixed $array) : bool|null
Parameters
$array : mixed
Return values
bool|null —

validateArrayContains()

protected validateArrayContains(mixed $value, array<string|int, mixed> $values) : bool|null
Parameters
$value : mixed
$values : array<string|int, mixed>
Return values
bool|null —

validateAssociativeArray()

protected validateAssociativeArray(mixed $array) : bool|null
Parameters
$array : mixed
Return values
bool|null —

validateBoolean()

protected validateBoolean(mixed $bool) : bool|null
Parameters
$bool : mixed
Return values
bool|null —

validateDate()

protected validateDate(mixed $date) : bool|null
Parameters
$date : mixed
Return values
bool|null —

validateEnumerateValue()

protected validateEnumerateValue(mixed $value, string $enum) : bool|null
Parameters
$value : mixed
$enum : string
Return values
bool|null —

validateEnumerateValues()

protected validateEnumerateValues(mixed $values, string $enum) : bool|null
Parameters
$values : mixed
$enum : string
Return values
bool|null —

validateItemsClass()

protected validateItemsClass(mixed $items, string $class) : bool|null
Parameters
$items : mixed
$class : string
Return values
bool|null —

validateNumeric()

protected validateNumeric(mixed $numeric) : bool|null
Parameters
$numeric : mixed
Return values
bool|null —

validateNumericList()

protected validateNumericList(mixed $numericList) : bool|null
Parameters
$numericList : mixed
Return values
bool|null —

validateParentId()

protected validateParentId(mixed $parentId) : bool|null
Parameters
$parentId : mixed
Return values
bool|null —

validateParentIdList()

protected validateParentIdList(mixed $parentIdList) : bool|null
Parameters
$parentIdList : mixed
Return values
bool|null —

validateParentPId()

protected validateParentPId(mixed $parentPId) : bool|null
Parameters
$parentPId : mixed
Return values
bool|null —

validatePositiveNumeric()

protected validatePositiveNumeric(mixed $numeric) : bool|null
Parameters
$numeric : mixed
Return values
bool|null —

validateScalar()

protected validateScalar(mixed $scalar) : bool|null
Parameters
$scalar : mixed
Return values
bool|null —

validateSort()

protected validateSort(mixed $sort) : bool|null
Parameters
$sort : mixed
Return values
bool|null —

validateString()

protected validateString(mixed $string[, int $minLength = 1 ][, int $maxLength = PHP_INT_MAX ]) : bool|null
Parameters
$string : mixed
$minLength : int = 1
$maxLength : int = PHP_INT_MAX
Return values
bool|null —

Search results