Overview

Namespaces

  • Jyxo
    • Beholder
      • TestCase
    • Gettext
      • Parser
    • Input
      • Chain
      • Filter
      • Validator
    • Mail
      • Email
        • Attachment
      • Parser
      • Sender
    • Rpc
      • Json
      • Xml
    • Shell
    • Spl
    • Svn
    • Time
    • Webdav
  • PHP

Classes

  • Conditional
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class Conditional

Chain of filters and validators for a single variable. The validation itself is performed after fulfilling the condition. The condition is checked by a defined validator.

Jyxo\Input\Chain implements Jyxo\Input\ValidatorInterface
Extended by Jyxo\Input\Chain\Conditional
Namespace: Jyxo\Input\Chain
Category: Jyxo
Package: Jyxo\Input
Subpackage: Chain
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Roman Řáha
Located at Input/Chain/Conditional.php
Methods summary
public
# __construct( Jyxo\Input\ValidatorInterface $validator = null )

Sets the condition validator.

Sets the condition validator.

Parameters

$validator
Jyxo\Input\ValidatorInterface
public boolean
# isValid( mixed $value )

Validates a value.

Validates a value.

Parameters

$value
mixed
Input value

Returns

boolean

Implementation of

Jyxo\Input\ValidatorInterface::isValid
public Jyxo\Input\Chain\Conditional
# setCondValidator( Jyxo\Input\ValidatorInterface $validator )

Sets the condition validator.

Sets the condition validator.

Parameters

$validator
Jyxo\Input\ValidatorInterface
Condition validator

Returns

Jyxo\Input\Chain\Conditional
Methods inherited from Jyxo\Input\Chain
addCondition(), addFilter(), addValidator(), addWalk(), close(), getErrors(), getParent(), getValue(), isEmpty(), setParent()
Constants inherited from Jyxo\Input\Chain
CLOSE, CONDITION, FILTER, VALIDATOR, WALK
Properties inherited from Jyxo\Input\Chain
$value
Jyxo PHP Library API documentation generated by ApiGen 2.3.0