|
From: Chris N. <pu...@po...> - 2001-03-13 12:20:02
|
At 07:19 +0100 2001.03.13, Alvaro del Castillo wrote: >This is the first place where I put them. But the I see that I need to >access Slash::DB in this functions and this library is not used >in Slash::Utility. remove and add ACLs need to access setUser and >getUser >which are in the Slash::DB API. > >So the only place where I found that I can put this functions was >Slash.pm. No, it's fine to do it through Slash::Utility. Just call getCurrentDB(). You're right that Slash::DB is not "use"d from Slash::Utility; however, it is only ever used in conjunction with Slash.pm, which does, so Slash::Utility has access to the Slash::DB class, which it does use. See createEnvironment(). The architecture of this very well may change a bit to be more clean, but that's not a problem for now. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |