1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00

Update to latest sources

This commit is contained in:
polytan02 2015-08-29 16:06:02 +01:00
parent ed7a418995
commit 0b0fe49107
2 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,43 @@
BEGIN:VCALENDAR
PRODID:-//Research In Motion//RIM App//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REPLY
BEGIN:VTIMEZONE
TZID:Europe/London
BEGIN:STANDARD
DTSTART:20001029T020000
RRULE:FREQ=YEARLY;BYDAY=4SU;BYMONTH=10
TZNAME:GMT
TZOFFSETFROM:+0100
TZOFFSETTO:+0000
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20000326T010000
RRULE:FREQ=YEARLY;BYDAY=4SU;BYMONTH=3
TZNAME:BST
TZOFFSETFROM:+0000
TZOFFSETTO:+0100
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ATTENDEE;RSVP=TRUE;ROLE=REQ-PARTICIPANT;CN=User1;PARTSTAT=ACCEPTED:mailto:user1
@domain1.tld
COMMENT:ok for me
CREATED:20150823T184526Z
DTEND;TZID=Europe/London:20150823T220000
DTSTAMP:20150823T184527Z
DTSTART;TZID=Europe/London:20150823T210000
ORGANIZER:mailto:user3@domain3.tld
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Test of meeting with Z-push
TRANSP:OPAQUE
UID:f503ce50-49c6-11e5-9533-693764eab43f
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:Test of meeting with Z-push in 15 minutes.
TRIGGER;RELATED=START:-PT15M
END:VALARM
END:VEVENT
END:VCALENDAR

View file

@ -0,0 +1,25 @@
<?php
require_once 'vendor/autoload.php';
define('LOGLEVEL', LOGLEVEL_DEBUG);
define('LOGUSERLEVEL', LOGLEVEL_DEVICEID);
date_default_timezone_set('Europe/Madrid');
function testing_get_method($filename) {
$body = file_get_contents($filename);
$ical = new iCalComponent();
$ical->ParseFrom($body);
$props = $ical->GetPropertiesByPath("VCALENDAR/METHOD");
if (count($props) > 0) {
printf("METHOD %s\n", $props[0]->Value());
}
}
testing_get_method('testing/samples/meeting_request.txt');
testing_get_method('testing/samples/meeting_request_rim.txt');
testing_get_method('testing/samples/meeting_reply_rim.txt');