Re: DataObject & calculated fields

From: Date: Fri, 23 Jan 2004 21:48:23 +0000
Subject: Re: DataObject & calculated fields
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25242@lists.php.net to get a copy of this message
Ian Eure wrote:
Sounds like a good place to use stored procedures. I just happen to use mysql which doesn't support sp's.
I have something similar, DataObject_Filter[1]. It's got more features, as it allows you to have a function triggered after fetch, and before insert and update. Handlers are field-specific, and can be stacked. So, for example, I use it to strip backslashes off strings stored in the database. [1]: http://www.websprockets.com/~ieure/PEAR/ I like your ideas too.
Regards, Norbert

« previous php.pear.dev (#25242) next »