Class Rules
List of validation & condition rules.
- Nette\Object
- Nette\Forms\Rules implements IteratorAggregate
public
|
|
public
|
|
public
|
#
addCondition( mixed $operation, mixed $arg = NULL )
Adds a validation condition a returns new branch. |
public
|
#
addConditionOn(
Adds a validation condition on specified control a returns new branch. |
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
array
|
|
public static
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
public static
array
|
$defaultMessages | array(
Form::PROTECTION => 'Your session has expired. Please return to the home page and try again.',
Form::EQUAL => 'Please enter %s.',
Form::FILLED => 'Please complete mandatory field.',
Form::MIN_LENGTH => 'Please enter a value of at least %d characters.',
Form::MAX_LENGTH => 'Please enter a value no longer than %d characters.',
Form::LENGTH => 'Please enter a value between %d and %d characters long.',
Form::EMAIL => 'Please enter a valid email address.',
Form::URL => 'Please enter a valid URL.',
Form::INTEGER => 'Please enter a numeric value.',
Form::FLOAT => 'Please enter a numeric value.',
Form::RANGE => 'Please enter a value between %d and %d.',
Form::MAX_FILE_SIZE => 'The size of the uploaded file can be up to %d bytes.',
Form::IMAGE => 'The uploaded file must be image in format JPEG, GIF or PNG.',
Form::MIME_TYPE => 'The uploaded file is not in the expected format.',
) |
$reflection
|