[TYPO3-ect] method setKeyPathOfRules disappeared
Elmar Hinz
elmar07 at googlemail.com
Tue Sep 11 21:47:27 CEST 2007
Fabien Udriot wrote:
> 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
Hi Fabien,
thank you for testing the recent version of T3-POP.
You want to use a different key from 'validationRules.'? I have provided a
general approach to remap setup keys. See the note here:
http://wiki.typo3.org/index.php/Action_Pipeline#Local_Object_Property
Your case:
$pipe->setProperty('validationRules.', 'myOtherValidationRules.');
Would the fit your needs?
Then please test, if theory fits praxis and give feedback to this posting.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list