Object oriented design for the backend
| From: | Martin Jansen | Date: | Thu, 17 Jun 2004 17:18:03 +0000 |
| Subject: | Object oriented design for the backend | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-2583@lists.php.net to get a copy of this message | ||
Hey,
in order to make the backend of the website (aka pear-database.php) more
maintainable, I've been thinking a bit about a fresh, object oriented
design lately. Today I started outlining my ideas in UML; a first
result can be found at
http://divbyzero.net/junk/pearweb-uml.gif
(I didn't ues any of the "hardcore" UML stylistic devices, so even
people without profound knowledge of UML should be able to at least
figure out the basics.)
Basically the diagram presents the current status-quo from
pear-database.php, but I believe it's a bit more organized and it adds a
bit more structure especially concerning the user model. I'd like to
use this draft as the basis for our further analysis and design process;
feedback is appreciated.
Because it is unlikely that we will be able to implement the new backend
in the next weeks/months, it also seems to make sense to use PHP 5 (and
probably MySQL 4.1) for the concrete realization. I'm also wondering
if we should use DB_DataObjects for talking to the database.
--
- Martin Martin Jansen
http://martinjansen.com/