This class can generate the HREF value to provide a Add to my google calendar link to your
page.
Following Data for the event to create is supported:
- Subject
setSubject()
- Start Date/Time
setStart()
- End Date/Time or Duration(if not set, default duration of 30 min is used)
setEnd()orsetDuration()
- Timezone (if not set, system settings used)
setTimezone()
- All day Event
setTimezone()
- Detailed Description (optional)
setDetails()
- Location
setLocation()
- Additional Guest(s)
addGuest()
- Create an instance of the GCalAddEventLink class
- Set the required information for the event to be generated
- Pass the generated HREF to an element on your page
See AddEventExample.php
This package can use any PSR-3 compliant logger. The logger is initialized with a NullLogger-object by default. The logger of your choice have to be passed to the constructor of the GCalAddEventLink class.
If you are not working with a PSR-3 compatible logger so far, this is a good opportunity to deal with this recommendation and may work with it in the future.
There are several more or less extensive PSR-3 packages available on the Internet.
You can also take a look at the 'XLogger' package and the associated blog 'PSR-3 logging in a PHP application' as an introduction to this topic.
- initial Version
