Thanks for your answer.
It is very useful.
So I can stop searching for a feature that isn't fully implemented yet.
I'll try to use the hooks you created

Also thank you for the comment about my code.
I don't use external libraries a lot and I'm a bit confused about the way 
to extend the classes
I'll check your link

Thanks

Le dimanche 21 août 2016 02:42:59 UTC+2, me a écrit :
>
> Hi Lionel,
>
> On Saturday, August 20, 2016 at 5:25:09 PM UTC-4, Lionel VEST wrote:
>>
>> Hi,
>>
>> I discovered SABREDAV two weeks ago, just after V3.2.0 was released
>>
>> I spent the last few days reading sabredav documentation, studying the 
>> code, and trying to implement it in a software that I'm developping since 
>> 10 years for a client.
>>
>> At this point, I achieved to create all the necessary backends to my 
>> MYSQL database : auth, principal, caldav, carddav, homecollection
>>
>> I'm now trying to implement some "sharing" features.
>> CALDAV sharing works out of the box
>> I understand that CARDAV sharing isn't implemented yet, so I'll delay 
>> this feature and wait for 3.3.
>>
>> But i'm a bit confused about WEBDAV sharing.
>> Is it possible to share just one folder or one file ?
>> I tried to edit the IsharedNode.php file this file doesn't seem to be 
>> loaded.
>> Am I loading the wrong plugins ?
>> Is there a way to share just one folder in V3.2.0 ?
>> What file should I edit to make this work ?
>>
>
> There is not really a 'default implementation' for file sharing at the 
> moment. There's also no real immediate plans to do this. I imagine that 
> this needs to be either a funded feature or a contribution from someone in 
> the community, as we don't really have this on our roadmap at the moment.
>
> The key that _was_ added for webdav sharing, is that we've basically added 
> all the hooks to make this work, but it doesn't come with an actual 
> implementation. ISharedNode is indeed the base interface you need to be 
> looking at.
>
>
>
>
>  
>
>>
>> Here's my current server.php code (PDO_OPTIMUS are my custom backends) :
>>
>
> OK, the way you're doing this is *really bad*. You are not supposed to 
> add new classes to the Sabre\ namespace, and I suspect this also means that 
> you're manually adding files to the lib/ directory.
> You're not the first to do this, which makes me believe that not everyone 
> is aware how they should extend PHP project correctly with their own 
> namespaces and composer.
>
> So for that reason I wrote a guide that hopefully makes this a bit easier:
>
> http://sabre.io/dav/extending-sabredav/
>
> The general hint I would give you is that if you *ever* make changes to 
> sabre/dav files, or if you are ever adding files to the sabre/dav source 
> directories, you are doing something really wrong. This is true for 
> sabre/dav, but also true for pretty much any other PHP project. You should 
> treat code from open source projects basically as read-only.
>
> You should be able to do anything you need by just extending classes in 
> your own source directories. Please read the doc and restructure your 
> project in a sane way:
>
> http://sabre.io/dav/extending-sabredav/
>
> Hope this helps!
> Evert
>

-- 
You received this message because you are subscribed to the Google Groups 
"SabreDAV Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sabredav-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sabredav-discuss/3728e758-dbc6-4bea-b378-7b56b0848fd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to