|
From: Rene <re...@gr...> - 2002-08-12 04:07:20
|
This looks fine to me. The way I think of it is that config/admin classes end up passing an array to the "base" class which contains all configuration settings of the active server. I hardcoded the config in the example I put up. I just need to fit in the real stuff you've been working on. So in the end the only communication between admin/config/login and the rest of bobs is an array with the configuration settings. -Rene On Sun, 2002-08-11 at 22:15, Joe zacky wrote: > Now that I've gotten familiar with the admin interface and config class, > I feel like you - I want to rewrite the classes. I've been reading a lot > in the php manual and examples and I think a single server definition > should be an object (class). A serverlist class could extend the server > class. All the classes could be based on a simple config class that just > basically stores the siteroot and server directory. > > Here's my proposed class structure. Please let me know what you think. > > ------------------------------------------------------ > BOBS proposed class structure > > CLASS VARIABLES CLASS FUNCTIONS > > config > siteroot config (constructor) > serverdir > admin extends config > admin_ok check_admin > admin_pwd > server extends config > server (constructor) - inits > as new server > server_defs[] get_ini - get .ini file into > config > login_ok check_active > new check_day > config login > commit_changes > serverlist extends server > servers[] set_config > current_server set_current > get_current > ------------------------------------------------------ > > I think the check_rules and parsing should be in a class too, but I'm > not sure how to fit it in yet. Maybe an edit class and a GUI class that > extend server? > > Joe > > P.S. I could finish the functionality the way it is if you want to get a > working version out there before rewriting the classes. Just let me know. > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Bobs-devel mailing list > Bob...@li... > https://lists.sourceforge.net/lists/listinfo/bobs-devel |