ICanBoogie/Validate master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Validate
      • Reader
      • Validation
      • Validator
      • ValidatorProvider

Classes

  • AbstractComparisonValidator
  • AbstractRangeValidator
  • AbstractValidator
  • Between
  • BetweenLength
  • Blank
  • Boolean
  • Email
  • Equal
  • Identical
  • IsFalse
  • IsNull
  • IsTrue
  • JSON
  • Max
  • MaxLength
  • Min
  • MinLength
  • NotBetween
  • NotBetweenLength
  • NotBlank
  • NotEqual
  • NotIdentical
  • NotNull
  • Regex
  • Required
  • TimeZone
  • Type
  • URL

Class AbstractRangeValidator

Abstract for classes implementing rane comparison.

ICanBoogie\Validate\Validator\AbstractValidator implements ICanBoogie\Validate\Validator
Extended by ICanBoogie\Validate\Validator\AbstractRangeValidator

Direct known subclasses

ICanBoogie\Validate\Validator\Between, ICanBoogie\Validate\Validator\BetweenLength

Indirect known subclasses

ICanBoogie\Validate\Validator\NotBetween, ICanBoogie\Validate\Validator\NotBetweenLength

Abstract
Namespace: ICanBoogie\Validate\Validator
Located at Validator/AbstractRangeValidator.php

Methods summary

public boolean
# validate( mixed $value, ICanBoogie\Validate\Context $context )

Parameters

$value
$context

Returns

boolean

Inheritdoc

protected array
# get_params_mapping( )

Returns

array

Inheritdoc

Overrides

ICanBoogie\Validate\Validator\AbstractValidator::get_params_mapping
abstract protected boolean
# compare( mixed $value, mixed $min, mixed $max )

Compares a value to a reference.

Compares a value to a reference.

Parameters

$value
$min
$max

Returns

boolean

Methods inherited from ICanBoogie\Validate\Validator\AbstractValidator

normalize_params()

Constants summary

string PARAM_MIN
# 'min'
string PARAM_MAX
# 'max'
string MESSAGE_ARG_MIN
# self::PARAM_MIN
string MESSAGE_ARG_MAX
# self::PARAM_MAX
string MESSAGE_ARG_VALUE_TYPE
# 'value_type'

Constants inherited from ICanBoogie\Validate\ValidatorOptions

OPTION_IF, OPTION_MESSAGE, OPTION_STOP_ON_ERROR, OPTION_UNLESS

Constants inherited from ICanBoogie\Validate\Validator

ALIAS, DEFAULT_MESSAGE, MESSAGE_ARG_ATTRIBUTE, MESSAGE_ARG_VALIDATOR, MESSAGE_ARG_VALUE

ICanBoogie/Validate master API documentation generated by ApiGen