[dev] Share locking
duck
duck at obala.net
Fri Oct 24 07:45:51 UTC 2008
On Friday 24 October 2008 08:48:22 Alfonso Marín Marín wrote:
> >>> Some things to comment:
> >>> - I have implemented the methods in Horde_Share. I had some doubts if
> >>> it would be better in Horde_Share_Object.
> >>
> >> I think that would be better; most individual actions are on the share
> >> objects now.
>
> Well, that has a problem: share object doesn't know nothing about
> application, so that information should be passed by parameters. That
> was the main reason for implement it in Horde_Share, to avoid another
> extra parameter.
You already have the Horde_Share object referenced
(Horde_Share_Object_sql::_shareOb). So you can just use the something like
$this->_shareOb->_app or create wrappers like getWriteDB() and getTable().
Duck
More information about the dev
mailing list