|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Validator
|
+--RuleValidator
Defined in validator.js
| Field Summary | |
String |
dataType
Comparison data type (for comparison rules) |
Function |
func
Validation function |
Object |
peer
Comparison peer |
String |
peerLabel
Peer label |
Number |
peerType
Peer type (PEER_FIELD or PEER_VALUE) |
Field |
peerValue
Holds the target comparison value, in REQIFXX rules |
String |
ruleType
Rule type |
<static> Number |
PEER_FIELD
Comparison rule between 2 form fields |
<static> Number |
PEER_VALUE
Comparison rule between a form field and a literal |
| Fields inherited from class Validator |
fld, fldLabel, msg
|
| Constructor Summary | |
RuleValidator
(args)
The RuleValidator can be used to test validation rules. |
|
| Method Summary | |
<private> Boolean
|
compare(<String> op)
Internal comparison method |
String
|
getErrorMessage()
Retrieve the error message based on the instance params |
Boolean
|
validate()
Executes the validation routine |
| Methods inherited from class Validator |
isMandatory
|
| Field Detail |
String dataType
Function func
Object peer
String peerLabel
Number peerType
Field peerValue
String ruleType
<static> Number PEER_FIELD
<static> Number PEER_VALUE
| Constructor Detail |
RuleValidator(args)
| Method Detail |
<private> Boolean compare(<String> op)
op - Comparison operator
String getErrorMessage()
Boolean validate()
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||