an ArrayValidatorRuleWithRule will make sure that a value is both an array and passes a given rule for each value
Located in /harmoni/core/utilities/FieldSetValidator/rules/ArrayValidatorRuleWithRule.class.php (line 15)
ValidatorRuleInterface | --ArrayValidatorRuleWithRule
Class | Description |
---|---|
ArrayValidatorRule | an ArrayValidatorRule will check if a given value is an array |
the rule to be used for each array element
the constructur
checks a given value to make sure it's an array and then runs $this->_rule on each value
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.
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:21:32 -0400 by phpDocumentor 1.3.0RC3