Php design - class diagram
Posted: Thu Mar 26, 2009 6:40 pm
Hi guys,
I wonder if anyone can help.
I am putting together a class diagram for a (fairly simple) website I am building.
The system will be OO using php 5. Therefore I have various classes. (User, Item etc)
I have produced a Use Case, Activity Diagram and I am now putting together a Class Diagram.
My question is simple.
I have looked high and low and most examples of class diagrams I have seen do not seem to model the database connection etc?
Now - I have a database class etc to handle the connection and error checking.
Should this be modelled within the class diagram?? (I assume so) and if so does anyone have any tips or examples??
Surely EVERY single class (in some way or another) will interact with the database??
Any advice or examples of class diagrams that model websites and database connections would be appreciated
Thanks guys
I wonder if anyone can help.
I am putting together a class diagram for a (fairly simple) website I am building.
The system will be OO using php 5. Therefore I have various classes. (User, Item etc)
I have produced a Use Case, Activity Diagram and I am now putting together a Class Diagram.
My question is simple.
I have looked high and low and most examples of class diagrams I have seen do not seem to model the database connection etc?
Now - I have a database class etc to handle the connection and error checking.
Should this be modelled within the class diagram?? (I assume so) and if so does anyone have any tips or examples??
Surely EVERY single class (in some way or another) will interact with the database??
Any advice or examples of class diagrams that model websites and database connections would be appreciated
Thanks guys