Class Rules
List of validation & condition rules.
- Nette\Object
- Nette\Forms\Rules implements IteratorAggregate
public
|
|
public
|
|
public
boolean
|
|
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
array
|
|
public
boolean
|
|
public static
boolean
|
|
public
|
|
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::NOT_EQUAL => 'This value should not be %s.',
Form::FILLED => 'This field is required.',
Form::BLANK => 'This field should be blank.',
Form::MIN_LENGTH => 'Please enter at least %d characters.',
Form::MAX_LENGTH => 'Please enter no more 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 valid integer.',
Form::FLOAT => 'Please enter a valid number.',
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::MAX_POST_SIZE => 'The uploaded data exceeds the limit of %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.',
Nette\Forms\Controls\SelectBox::VALID => 'Please select a valid option.',
) |
$reflection
|