Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • AlwaysFailValidator
  • CallbackValidator
  • NethPlatform
  • Process
  • SessionDatabase
  • Validator

Interfaces

  • DatabaseInterface
  • MandatoryValidatorInterface
  • PlatformConsumerInterface
  • PlatformInterface
  • ProcessInterface
  • ValidatorInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Interface ValidatorInterface

Test if an input value is grammatically and/or logically valid

WARNING: implementors must also implement isMandatory() method! This interface will be merged with MandatoryValidatorInterface

Direct known implementers

Nethgui\System\AlwaysFailValidator, Nethgui\System\CallbackValidator, Nethgui\System\MandatoryValidatorInterface

Indirect known implementers

Nethgui\System\Validator
Namespace: Nethgui\System
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
See: Nethgui\System\MandatoryValidatorInterface
Api
Located at System/ValidatorInterface.php
Methods summary
public boolean
# evaluate( mixed $value )

Test if $value is accepted by this validator.

Test if $value is accepted by this validator.

Parameters

$value

Returns

boolean

Api

public array
# getFailureInfo( )

Tells why validation failed

Tells why validation failed

If evaluate() returns FALSE the validator object must return an explanation of the problem as an array of arrays.

Returns

array
An array of arrays of two elements: a template string and an array of arguments, to invoke strtr().

See

Nethgui\System\ValidatorInterface::evaluate()

Api

Nethgui Framework API documentation generated by ApiGen