Class NRules
List of validation & condition rules.
- NObject
- NRules 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(
NForm::PROTECTION => 'Your session has expired. Please return to the home page and try again.',
NForm::EQUAL => 'Please enter %s.',
NForm::FILLED => 'Please complete mandatory field.',
NForm::MIN_LENGTH => 'Please enter a value of at least %d characters.',
NForm::MAX_LENGTH => 'Please enter a value no longer than %d characters.',
NForm::LENGTH => 'Please enter a value between %d and %d characters long.',
NForm::EMAIL => 'Please enter a valid email address.',
NForm::URL => 'Please enter a valid URL.',
NForm::INTEGER => 'Please enter a numeric value.',
NForm::FLOAT => 'Please enter a numeric value.',
NForm::RANGE => 'Please enter a value between %d and %d.',
NForm::MAX_FILE_SIZE => 'The size of the uploaded file can be up to %d bytes.',
NForm::IMAGE => 'The uploaded file must be image in format JPEG, GIF or PNG.',
NForm::MIME_TYPE => 'The uploaded file is not in the expected format.',
) |
$reflection
|