Re: quick sanity check on hooking up params::validate to cdbi subclasses.

[prev] [thread] [next] [Date index for 2005/07/28]

From: Perrin Harkins
Subject: Re: quick sanity check on hooking up params::validate to cdbi subclasses.
Date: 03:48 on 28 Jul 2005
George Hartzell wrote:
> I think that I'd like to use params::validate to check up on values
> used to create my class::dbi based objects.
> 
> Seems like the right thing to do is override sub create {} in my
> subclasses, and if things validate then just call SUPER::create.
> 
> Does that seem reasonable?

Yes, I do this exact thing with Params::Validate in my Class::DBI classes.

- Perrin

Re: quick sanity check on hooking up params::validate to cdbi subclasses.
Perrin Harkins 03:48 on 28 Jul 2005

Generated at 16:35 on 28 Jul 2005 by mariachi v0.52