[Solar-talk] extending app classes

Antti Holvikari anttih at gmail.com
Tue Jul 11 07:32:18 PDT 2006


On 7/11/06, Jeff Surgeson <solar at 3hex.com> wrote:
> Hi Antti
>
> Am I correct in sying that is basicly what Paul's Content class does?

Well, the model part of it kind is. I didn't talk much about how you'd
implement the product model, but you could do it like Solar_Content
does: make an abstract product model class and then extend that for
every product type to give different functionality. If the models are
very similar, you could only use that one property, say $this->_type,
in your selects, inserts etc. to make difference between different
product types.

I'm sure Paul has some good pointers on this.

-- 
Antti Holvikari <http://antti.dotgeek.org/blog>
Zend Certified Engineer (ZCE)


More information about the solar-talk mailing list