[Apachetoolbox-devel] First Pass Implementation
Brought to you by:
bryanandrews
From: Kevin J. M. Jr. <km...@wp...> - 2001-07-23 14:56:39
|
Hey guys, So, yeah, I haven't actually started to code anything yet <g>, but I came up with an awesome idea this weekend (or so it seems atm). This really should allow us to do a drop in module type thing. Basically, the main atb program contains a hash of hashes. When the script starts up, we read all the entries in bin/ (or where ever), which would correspond to one module accordingly. This would populate the hash and it's child hash. Now, follow me here. We sort the hash based on keys, and have a little for loop spit out the menu, so it'll look like the existing one. Now, the parent hash uses the value to select on the menu as the key. So, for instance, PHP would have the key "php". Then the sub hash would have for instance a "title" key, which would say "PHP Menu" or what have you. Then a "code" key could contain a reference to code block contained in the bin/ entry. So, ideally, to add a new module, all you need to do is drop it into bin, and hope the index value doesn't conflict with any others. I'm gonna try to start coding this soon. Just been busy as hell lately. -- Kevin |