Interface is providing a useful methods for CGI and Rhtml and hiding low level interface as much as possible. And the interface should memoize the retrieved values if that seemed to be accessed later. Hence, writer of CGI and Rhtml have not to take care much about number of database access.
There are three main interfaces.
Common interface would be mixed-in to every CGI class.
It provides methods related about shop, item (product/category), tag, option, pricing, picture, movie, mail, rss, order and so on.
Customer interface would be mixed-in to CGI class that will show a page to customer.
It provides methods related about account, cart, order, review, trackback, session, product_statistics and so on.
Administration interface would be mixed-in to cgi class that will show an administration page to shop keeper.
It provides methods related about admin_session and so on.
|
Database Guideline |
CGI/Rhtml |