On Wed, Aug 12, 2009 at 3:57 PM, Benjamin Börngen-Schmidt<[email protected]> wrote: > Huomenta Simon, > > looking at the code of AgaviValidator, there seems to be now out-of- > the-box way to achieve this. > What I did while writing a validator for Redracer was, that I got all > args via $args = $this->getArguments(), then checked if the key aka > the argumentname exsists and then got the data via $this- > >getData($args['foobar']); > > Also as stated in the class ( http://bit.ly/uScYd )the getArgument > method is to be used by validators which expect only 1 Argument. >
Yepp... this solution works for me. Being able to get the arguments using its name looks useful though. I've submitted a patch a while ago and I hope it gets approved. :) Regards, [ simon.cpu ] > Cheers > Benjamin > _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
