| Recommend this page to a friend! |
| Packages of Stefan Kientzler | ICalendar Import and Export | readme.md | Download |
|
|||||||||||||||||||||
ICal Import/ExportOverviewThis package can read and write data in the The iCalendar format is first choice when such data needs to be exchanged or synchronized between different platforms, systems, or applications. The clear time zone specifications ensure unambiguous, region-independent data exchange at all times. From the four components
> The code and class structure allows a fairly simple extension with the two additional > components - however, since I do not need them yet, the implementation is (still) > pending; feel free to contribute and create according pull requests ;-) ## Timezone handling The timezone handling when reading is different from that when creating 1. When generating a calendar, the (PHP) timezone that is set when the iCalender 2. When reading a calendar, the timezone definitions contained in the file are taken Recurring itemsIn addition to the actual definition of the components, the When reading elements that use this mechanism, the calling agent can decide how to handle them:
Formattet Text in descriptions (HTML)ImportWhen reading a iCalendar file, formatted HTML text is recognized if it is either stored
in the RFC 5545-compliant If HTML is passed directly in a description (which is actually intended for plain text), it is automatically moved to the HTML description and a plain text representation is created. If only a HTML description is passed, a plain text representation is auto-created. It can be queried whether formatted text is available and both versions can be retrieved separately. ExportWhen creating an iCalendar file, the description of an item can be set separately as plain text and as formatted text. If only an HTML description is provided, a plain text version is automatically generated before the item is written to the file. Additionally, there's the option to automatically generate a rudimentary HTML representation of plain text when no formatted text is available. Besides generating HTML line breaks, this option currently only offers valuable benefits when the plain text contains long, difficult-to-read URLs (... this is often the case for calendar entries that refer to further information on the Internet): Plain URL's such as are converted to real HTML links like:
this can result in a much better read- and recognizable display by the reading agent in following way: UsageThe usage for reading and writing iCalendar files is demonstrated in the sample code files
that are part of the package and can be found in the root directory. |