From: Steven L. <st...@tu...> - 2004-06-24 12:48:06
|
On Wed, 2004-06-23 at 02:38, Greg Morgan wrote: > I've read the documentation on the item and manager class > http://res1.stddev.appstate.edu/horde/chora/co.php/phpwebsite/docs/developers/ITEM_MANAGER_README.txt?r=1.12. > > I also read the email messages title "Simple Module". I don't think I > have found an answer to my question. If I have a code table and a table > that uses that code in a row, can I use these classes? The idea would > be then I implement an Item class for the two tables and a Manager class > to manage them both. Can I take these relationships as far as having > six to ten tables in my install.sql file? Each would have an Item class > implemented with one manager class to manage all the items. The gist of > these tables is a small relational database system. Has someone created > a module like this where there might be some sample code to look at? Greg, I would recommend using the Item class but not the Manager. Instead of Manager check out the List class in the core. This class is much easier to use and more flexible. Write your own manager class which will control all your lists and items. You could even have one manager that controls a bunch of sub-managers, the are many possibile solutions all depending on how you would like your code to be structured. The documents module implements both Item and List without extending the core Manager class. Altough it only implements 2 items you may be able to get some ideas from it. Hope this helps. Feel free to email the list with further questions. -- Steven Levin Computer Systems Admin I Electronic Student Services Appalachian State University Phone: 828.262.6740 http://phpwebsite.appstate.edu |