HumHub Documentation (unofficial)

StaticValidator
in package

Table of Contents

Properties

$plugins  : ValidatorPluginManager|null

Methods

execute()  : bool
getPluginManager()  : ValidatorPluginManager
Get plugin manager for locating validators
setPluginManager()  : void
Set plugin manager to use for locating validators

Properties

Methods

execute()

public static execute(mixed $value, ValidatorInterface> $classBaseName[, array<string|int, mixed> $options = [] ]) : bool
Parameters
$value : mixed
$classBaseName : ValidatorInterface>
$options : array<string|int, mixed> = []

OPTIONAL associative array of options to pass as the sole argument to the validator constructor.

Tags
throws
InvalidArgumentException

For an invalid $options argument.

Return values
bool
Loading…
On this page

Search results