[TYPO3-ect] method setKeyPathOfRules disappeared

Fabien Udriot fudriot at omic.ch
Tue Sep 11 20:58:57 CEST 2007


Hi,

Recently, I have updated my working copy of lib and I have noticed that 
the method setKeyPathOfRules() from tx_lib_validator disappeared.

I now missed this functionnality. I have different input to validate 
according to different parameters input... but how can I do that now ?

If I believe the code, the rules have to be called "validationRules" in 
the TypoScript. (line 87 of file class.tx_lib_validator.php).

Can we change the implementation with a property :

Instead of this line 87 :
foreach((array) $this->findProperty('validationRules.') as $rule) {

rather this :
foreach((array) $this->findProperty($this->validationRules) as $rule) {

_addition method in tx_lib_validator :_

public function setValidationRules($key){
	$this->validationRules = $key;
}

best regards,

Fabien


More information about the TYPO3-team-extension-coordination mailing list