CALDAV integration

121 views
Skip to first unread message

Ben Danguy

unread,
May 6, 2013, 7:58:37 AM5/6/13
to sabredav...@googlegroups.com
Hi all,

I have a php application with a mysql database where i have all my events.
I want to add SabreDAV in caldav mode in my application.
my sabredav is ok.
Now i want to sync datas of my app and datas of sabredav.
So i think, i have to do this :
- add a function in my app to add/modify/delete events in sabredav data table when i do it from my app.
- modify the caldav backend of sabreDAV to add/modify/delete events in my app data table when i do it from the caldav

But in backend, i don't know how get informations from $calendardata. Is there a function to parse it ?

And in my app, how can i add/modify,delete events in sabredav ?

Is there someone who have an exemple ?

Thanks in advance for reply

Evert Pot

unread,
May 6, 2013, 10:18:33 AM5/6/13
to sabredav...@googlegroups.com

On May 6, 2013, at 12:58 PM, Ben Danguy <cyra...@live.fr> wrote:

> Hi all,
>
> I have a php application with a mysql database where i have all my events.
> I want to add SabreDAV in caldav mode in my application.
> my sabredav is ok.
> Now i want to sync datas of my app and datas of sabredav.
> So i think, i have to do this :
> - add a function in my app to add/modify/delete events in sabredav data table when i do it from my app.
> - modify the caldav backend of sabreDAV to add/modify/delete events in my app data table when i do it from the caldav
>
> But in backend, i don't know how get informations from $calendardata. Is there a function to parse it ?

SabreDAV ships with a parser:

https://github.com/fruux/sabre-vobject#readme

>
> And in my app, how can i add/modify,delete events in sabredav ?
>
> Is there someone who have an exemple ?

You can create an instance of your CalDAV backend and just call those methods. You could also directly make changes on the database, but this isn't recommended.

Evert

Ben Danguy

unread,
Dec 4, 2013, 9:04:09 AM12/4/13
to sabredav...@googlegroups.com
Is someone have an example of how to do that exactly ?
because i've tried many things and i've obtained something that work....

i have the event data in many variables (title, start_date, end_date, description....) and i want to add, update, delete it in the caldav server

Evert Pot

unread,
Dec 8, 2013, 6:08:07 PM12/8/13
to sabredav...@googlegroups.com
Hi Ben,


On Wednesday, December 4, 2013 9:04:09 AM UTC-5, Ben Danguy wrote:
Is someone have an example of how to do that exactly ?
because i've tried many things and i've obtained something that work....

i have the event data in many variables (title, start_date, end_date, description....) and i want to add, update, delete it in the caldav server

I love to help with any issues people have, and if I had a ready-made example I'd hook you up, but I don't. Everybody's situation is different, so rather than maintaining a big list of code snippets that do specific things, I try to document the source in such a way that people can learn and understand how to go about solving a specific problem.

So in order to help you better, you need to first do research. Ask specific questions that have specific answers.

Evert
Reply all
Reply to author
Forward
0 new messages