PHP2Go Javascript Framework

Class RuleValidator

Object
   |
   +--Validator
         |
         +--RuleValidator

class RuleValidator
extends Validator

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

dataType

String dataType

func

Function func

peer

Object peer

peerLabel

String peerLabel

peerType

Number peerType

peerValue

Field peerValue

ruleType

String ruleType

PEER_FIELD

<static> Number PEER_FIELD

PEER_VALUE

<static> Number PEER_VALUE

Constructor Detail

RuleValidator

RuleValidator(args)

Method Detail

compare

 <private> Boolean compare(<String> op)

getErrorMessage

String getErrorMessage()

validate

Boolean validate()

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007