[Ubuntu-be] OSLessLaptopShops update

Toni Van Remortel ToniVR at telenet.be
Thu Aug 3 18:09:19 BST 2006


On Thu, 2006-08-03 at 09:27 +0200, mongolito404 wrote:
> Hi
> 
> I don't fully understand your "Database / Models" classes diagram. Is
> this supposed to be a class diagram of all the CI Models ? If yes, how
> are they supposed to be used ?

It is supposed to be a diagram of the database (all variables in the
classes) and the models (all functions in the classes). You should see
it more like a database model with directly assigned functions.

It is quite general, I know. So there is no direct link between
model/database and any controller. And that is probably where you get
stuck.
The idea is that you need more PHP coding to get everything working. The
database is merely a general backend to store all your data. The model
is designed to be directly linked to the database, not the functionality
you expect on the web side.

Again, it is a very general and abstract approach, which requires more
PHP coding, but it allows us more flexibility afterwards.

> You added an "admin_level" to Supporter. I guess this is for admin
> rights. Instead of an "admin_level", I would prefer to have the
> concept of "Supporters Group" (ie. A supporter is a member of 0, one
> or more Groups) and supporter/groups based access control.

I totally agree with your idea. I'll change the UML, and provide a 3rd
version soon.

Regards,
-- 
Toni Van Remortel <ToniVR at telenet.be>




More information about the ubuntu-be mailing list