1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00
z-push_ynh/sources/testing/testing-imap_meeting_method.php
polytan02 e030ef003f Update of php-fpm conf to avoid issues of process being killed to early
Update to latest sources

Update to latest sources
2015-08-29 16:54:45 +01:00

25 lines
No EOL
649 B
PHP

<?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');