Bitrix API

RangeValidator extends Validator

Table of Contents

Methods

__construct()  : mixed
validate()  : string|bool|EntityError

Methods

__construct()

public __construct([int $min = 0 ][, null $max = null ][, bool $equality = false ][, array<string|int, mixed> $errorPhrase = array('MIN' => null, 'MAX' => null) ]) : mixed
Parameters
$min : int = 0
$max : null = null
$equality : bool = false

Check "or equal" to the edges of the range

$errorPhrase : array<string|int, mixed> = array('MIN' => null, 'MAX' => null)
Tags
throws
ArgumentTypeException

validate()

public validate(mixed $value, mixed $primary, array<string|int, mixed> $row, Field $field) : string|bool|EntityError
Parameters
$value : mixed
$primary : mixed
$row : array<string|int, mixed>
$field : Field
Return values
string|bool|EntityError

        
On this page

Search results