Class Rule (namespace Nette\Forms)


Single validation rule or condition represented as value object.

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

line 24

type
int FILTER 3

line 30

type
int TERMINATOR 4

line 33

type
int VALIDATOR 2

line 27

type
Variable Summary
mixed $arg

line 42

bool $breakOnFailure TRUE

line 54

(only for VALIDATOR type)
IFormControl $control

line 36

bool $isNegative FALSE

line 48

string $message

line 51

(only for VALIDATOR type)
mixed $operation

line 39

Rules $subRules

line 57

(only for CONDITION type)
int $type

line 45

(CONDITION, VALIDATOR, FILTER)