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

Class CallbackValidator

Description of CallbackValidator

Nethgui\System\CallbackValidator implements Nethgui\System\ValidatorInterface
Namespace: Nethgui\System
Author: Davide Principi davide.principi@nethesis.it
Located at System/CallbackValidator.php
Methods summary
public
# __construct( $callback )
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

Implementation of

Nethgui\System\ValidatorInterface::evaluate()
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\CallbackValidator::evaluate()

Api

Implementation of

Nethgui\System\ValidatorInterface::getFailureInfo()
Nethgui Framework API documentation generated by ApiGen