LimeSurvey API - Master branch

ValidatorNull
in package
implements ValidatorInterface

Example config: 'expires' => ['null' => false]

Table of Contents

Interfaces

ValidatorInterface

Properties

$name  : string

Methods

normaliseConfigValue()  : bool
Normalises the config value for this validator
validate()  : array<string|int, mixed>|bool
Validates the key and it's value based on the config.

Properties

Methods

normaliseConfigValue()

Normalises the config value for this validator

public normaliseConfigValue(array<string|int, mixed> $config) : bool
Parameters
$config : array<string|int, mixed>
Return values
bool

validate()

Validates the key and it's value based on the config.

public validate(string $key, mixed $value, array<string|int, mixed> $config, array<string|int, mixed> $data[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>|bool
Parameters
$key : string
$value : mixed
$config : array<string|int, mixed>
$data : array<string|int, mixed>
$options : array<string|int, mixed> = []
Return values
array<string|int, mixed>|bool

        
On this page

Search results