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 Required

States that a value is required. When the value is not present the validator issues an error and stops validation of the value, that is on error no other validator is run.

ICanBoogie\Validate\Validator\AbstractValidator implements ICanBoogie\Validate\Validator
Extended by ICanBoogie\Validate\Validator\Required
Namespace: ICanBoogie\Validate\Validator
Located at Validator/Required.php

Methods summary

public array
# normalize_params( array $params )

Parameters

$params

Returns

array

Inheritdoc

Overrides

ICanBoogie\Validate\Validator\AbstractValidator::normalize_params
public boolean
# validate( mixed $value, ICanBoogie\Validate\Context $context )

Parameters

$value
$context

Returns

boolean

Inheritdoc

Methods inherited from ICanBoogie\Validate\Validator\AbstractValidator

get_params_mapping()

Constants summary

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