Interface

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

Common interface would be mixed-in to every CGI class.

Global variables

Functions

It provides methods related about shop, item (product/category), tag, option, pricing, picture, movie, mail, rss, order and so on.

Customer interface

Customer interface would be mixed-in to CGI class that will show a page to customer.

Global variables

Functions

It provides methods related about account, cart, order, review, trackback, session, product_statistics and so on.

Administration interface

Administration interface would be mixed-in to cgi class that will show an administration page to shop keeper.

Global variables

Functions

It provides methods related about admin_session and so on.

Prev

Database Guideline

Top

Upward

Next

CGI