a RegexValidatorRule checks a given value against a regular expression
Located in /harmoni/core/utilities/FieldSetValidator/rules/RegexValidatorRule.class.php (line 15)
ValidatorRuleInterface | --RegexValidatorRule
Class | Description |
---|---|
DottedPairValidatorRule | The DottedPairValidatorRule checks to see if a string is of a "module.action" dotted-pair format. |
CSSColorValidatorRule | a RegexValidatorRule checks a given value against a regular expression |
CSSFontFamilyValidatorRule | a RegexValidatorRule checks a given value against a regular expression |
CSSLengthValidatorRule | a RegexValidatorRule checks a given value against a regular expression |
CSSLengthValidatorRuleWithOptions | a RegexValidatorRule checks a given value against a regular expression |
EmailValidatorRule | a EmailValidatorRule checks a given value to make sure it is an email address |
FieldRequiredValidatorRule | a FieldRequiredValidatorRule checks a given value to make sure it is set (not blank) |
the regular expression that should be used to check the value
the constructor
checks a given value against the regular expression defined
Returns a block of javascript code defining a function like so:
function(element) { return el.value.match(/\w+/); }
This is a static method to return an already-created instance of a validator rule. There are at most about a hundred unique rule objects in use durring any given execution cycle, but rule objects are instantiated hundreds of thousands of times.
This method follows a modified Singleton pattern.
This is a static method to return an already-created instance of a validator rule. There are at most about a hundred unique rule objects in use durring any given execution cycle, but rule objects are instantiated hundreds of thousands of times.
This one genrates a regular expression from an array of regular expressions. The whole string must match.
This method follows a modified Singleton pattern.
Return a key that can be used to identify this Rule for caching purposes.
If this rule takes no arguments, the class name should be sufficient. otherwise, append the arguments.
This method should only be called by ValidatorRules.
Inherited From ValidatorRuleInterface
ValidatorRuleInterface::check()
ValidatorRuleInterface::getRule()
ValidatorRuleInterface::getRuleKey()
Documentation generated on Wed, 19 Sep 2007 10:25:55 -0400 by phpDocumentor 1.3.0RC3