[dev] Re: Horde_Share patch
Jan Schneider
jan at horde.org
Wed Oct 27 02:23:15 PDT 2004
Zitat von Ben Chavet <ben at chavet.net>:
> I see.
>
> My patch works remarkably well for what I need to do, even if it isn't
> supposed
> to :) Just send a string $owner to listGalleries which then trickles through
> all of the calls & then grabs all galleries belonging to $owner.
>
> getShareCriteria is the critical call for that functionallity, though.
> So, I'm
> thinking that we probably just need to do some extra checks there to make it
> reliable. Is there a way to check for ($owner == true) vs. (owner ==
> 'some-string')? If so, we could do some variant of:
>
> if ($owner == true)
> get all shares belonging to $userid
> else if ($owner == 'johndoe')
> get all shares belonging to 'johndoe'
>
> Thoughts?
Huh? Maybe I miss something, but you can already can get the shares from a
certain user with Horde_Share and I would like to overload any of the
parameters of such a basic method for the Horde applications if we don't
need to.
Overloading the $owner parameter in the listGalleries() method might be a
compromise, but I'd rather like a new optional parameter to that method.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the dev
mailing list