Class Rule (namespace Nette\Forms)


Single validation rule or condition represented as value object.

Object
   |
   --Rule
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Forms/Rule.php (line 34)
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constant Summary
int CONDITION 1

line 37

type
int FILTER 3

line 43

type
int TERMINATOR 4

line 46

type
int VALIDATOR 2

line 40

type
Variable Summary
mixed $arg

line 55

bool $breakOnFailure TRUE

line 67

(only for VALIDATOR type)
IFormControl $control

line 49

bool $isNegative FALSE

line 61

string $message

line 64

(only for VALIDATOR type)
mixed $operation

line 52

Rules $subRules

line 70

(only for CONDITION type)
int $type

line 58

(CONDITION, VALIDATOR, FILTER)