[Solar-talk] Solar_Model_Areas, Solar_Model_Nodes and Solar_Model_Tags
Rodrigo Moraes
rodrigo.moraes at gmail.com
Fri Nov 3 12:07:29 PST 2006
On 11/3/06, Matt M. wrote:
> OK, I want to know more about these classes, but can't find much on how they
> work. Can someone explain the idea behind these classes and how they work
> together?
To quote Paul quoted by Travis ;-), Solar_Model_Areas,
Solar_Model_Nodes and Solar_Model_Tags are "Table Modules" and the
logic that
you'd see in a lot of Models happens in the Solar_Content classes which
are "Domain Models".
Look at how the Bookmarks app work. The model part is provided by
Solar_Content_Bookmarks, which talks directly to the three table
classes.
> I'm building a very simple e-commerce package right now. Can these classes
> help me? :)
Basically they are general, ready for use table schemes. It may be
useful for you if you get used to them, or not if you don't.
Personally I don't use those tables, but all my tables have a
correspondent "table module class" and I use many ideas borrowed from
Solar_Content_Bookmarks. It was released before the Row/Rowset sql
classes, so there is no good example of usage for these classes there;
I've been trying this and that to accommodate some row/rowset tricks
to my content/model classes.
rodrigo
---------------------------------------------------------------------
Solar has now a Community Wiki: solarphp.org
---------------------------------------------------------------------
Join the #solarphp IRC channel on freenode.org
---------------------------------------------------------------------
More information about the solar-talk
mailing list