|
From: Joe z. <jz...@at...> - 2002-08-11 20:15:21
|
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.
|