[dev] Re: [cvs] commit: nag/lib base.php

Stuart K Bingë omicron-list at mighty.co.za
Sun Oct 3 14:51:59 PDT 2004


On Sunday, 03 October 2004 23:36, Chuck Hagenbuch wrote:
> Quoting Stuart KBingë <omicron-list at mighty.co.za>:
> > Is it even possible to create share subclasses and have them used within
> > an application?
>
> Not currently, but sometimes you need to refactor code for cases like this
> instead of simply hacking things in.
>
> > Basically I need a way to map a list of IMAP folders to the current
> > user's share list when first loading an application. The way I've done it
> > is the cleanest way I could find so far.
>
> Another cleaner option would be a hook for share listing.

I think this is the best option actually. Using share subclasses seems like 
overkill for what I'm looking for.

I would think Horde_Share::listShares() would be the proper place to put it, 
correct?

-- 
Stuart K Bingë
 - Freelance UNIX/C++, PHP, Perl developer.

Email: omicron at mighty.co.za



More information about the dev mailing list