ICanBoogie
  • Documentation
  • API Reference
  • Validate v0.1.0
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
┗ ICanBoogie\Validate\Validator\Required
Namespace: ICanBoogie\Validate\Validator
Located at Validator/Required.php

Methods summary

public normalize_params( array $params ) : array

Parameters

$params

Returns

array

Inheritdoc

Overrides

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

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

Validate v0.1.0 – Check on GitHub – API documentation generated by ApiGen