mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
25 lines
No EOL
649 B
PHP
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'); |