ComposerAutoloaderInit10090aea46bb08efc2674b995834ba0c::getLoader();
autoloads.php file is created by composer and it may possible composer is not creating
ComposerAutoloaderInit10090aea46bb08efc2674b995834ba0c file.
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInit10090aea46bb08efc2674b995834ba0c::getLoader();
// You can either pass a readable stream, or a string.
$h = fopen('backupfile.vcf', 'r');
$splitter = new VObject\Splitter\VCard($h);
while($vcard = $splitter->next()) {
// $vCard is a single vCard object. You can just call serialize() on it
// if you were looking for the string version.
}
i just changed VCard to ICalendar Splitter and a blank page appears to me, here is my test.php file code
should i need to include anything more?
<?php
use Sabre\VObject;
include 'vendor/autoload.php';
//1. $vobjectStream = fopen(file_get_contents(dirname(__FILE__) . '/basic.ics'),'r');
//2. $vobjectStream = fopen(dirname(__FILE__) . '/basic.ics','r');
$vobjectStream = fopen('http://localhost/my_project/basic.ics','r');
$splitter = new VObject\Splitter\ICalendar($vobjectStream);
while($VEVENT = $splitter->next()) {
echo "<pre>";
print_r($VEVENT);
echo "</pre>";
}
I have provided all of three ways 1,2,3 for input stream.
For some VEVENT in ICalendar(in basic.ics file) have DTSTART and DTEND with tzid, will your library automatically convert DTSTART and DTEND according to tzid or further i need to process on DTSTART and DTEND?
--
You received this message because you are subscribed to a topic in the Google Groups "SabreDAV Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sabredav-discuss/JNHRsdURxMQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sabredav-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/92B81219-CB1A-4C30-ABDB-6E13429AE8BC%40gmail.com.
> To unsubscribe from this group and stop receiving emails from it, send an email to sabredav-discuss+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/f7dc0fdf-bfc5-45c1-80c5-529f7bfe07b9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <my_project.zip>
--
You received this message because you are subscribed to a topic in the Google Groups "SabreDAV Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sabredav-discuss/JNHRsdURxMQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sabredav-discuss+unsubscribe@googlegroups.com.
$splitter->next() function is not available anymore in the ICalendar or VCard, it have changed to$splitter->getNext(), old doc confused me a lot
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Now i have concerned only with DTSTART and DTEND datetime object, these are two things thats why i want to use sabre/object.
if i import basic.ics file in the google calendar, the DTSTART and DTEND are not same as i have parsed basic.ics file using sabre/vobject Icalendar.Below is parsed data, i just print out SUMMARY, DTSTART(DateTime object) and DTSTART(in W3C format).
Also there are some VEVENT with DTSTART having not time but only date, your parser include 00:00:00 with them, it seam event will start 12:00 AM or PM.
i have attached my test.php file you can replace with test.php(roor directory) in the zip file, zip file i had sent you earlier few days.
can you please just import basic.ics file to your google calendar and and can matched the DTSTART object parsed through sabre/vobject?
Or
can you please provide some other solution using sabre/vobject so that they should be same?
1. AHS coaches at shop
object(DateTime)#1180 (3) {
["date"]=>
string(19) "2014-10-16 19:30:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-10-16T19:30:00-05:00
2. Lakers Pasta Dinner
object(DateTime)#1184 (3) {
["date"]=>
string(19) "2015-01-09 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-01-09T18:00:00-06:00
3. Lakers Annual Xmas Camp (DH)
object(DateTime)#1187 (3) {
["date"]=>
string(19) "2014-12-26 09:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-26T09:00:00-06:00
4. Lakers/OHS Ski swap
object(DateTime)#1189 (3) {
["date"]=>
string(19) "2014-11-07 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-11-07T18:00:00-06:00
5. Lakers Training (Lil Switz)
object(DateTime)#1193 (3) {
["date"]=>
string(19) "2015-02-05 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-02-05T18:00:00-06:00
6. Lakers Training (Lil Switz)
object(DateTime)#1196 (3) {
["date"]=>
string(19) "2015-01-15 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-01-15T18:00:00-06:00
7. Lakers Training (Lil Switz)
object(DateTime)#1199 (3) {
["date"]=>
string(19) "2014-12-09 16:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-09T16:00:00-06:00
8. Lakers Training (DH)
object(DateTime)#1202 (3) {
["date"]=>
string(19) "2014-12-21 08:30:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-21T08:30:00-06:00
9. Lakers Training
object(DateTime)#1205 (3) {
["date"]=>
string(19) "2014-12-21 08:30:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-21T08:30:00-06:00
10. Lakers Training (Lil Switz)
object(DateTime)#1208 (3) {
["date"]=>
string(19) "2014-12-11 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-11T18:00:00-06:00
11. WC Races (Women Aspen GS, SL)
object(DateTime)#1210 (3) {
["date"]=>
string(19) "2014-11-28 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-11-28T18:00:00-06:00
12. WILLSKI Early Camp #5 (U14-U18 Week)
object(DateTime)#1213 (3) {
["date"]=>
string(19) "2014-11-18 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-11-18T18:00:00-06:00
13. WILLSKI Early Camp #4 (U8-U12 project)
object(DateTime)#1216 (3) {
["date"]=>
string(19) "2014-11-11 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-11-11T18:00:00-06:00
14. USSA Race (Ripley 2 GS)
object(DateTime)#1219 (3) {
["date"]=>
string(19) "2015-01-02 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-01-02T18:00:00-06:00
15. USSA Event (GS Camp Ripley)
object(DateTime)#1222 (3) {
["date"]=>
string(19) "2014-12-31 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-31T18:00:00-06:00
16. WI High School State Meet
object(DateTime)#1225 (3) {
["date"]=>
string(19) "2015-02-13 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-02-13T18:00:00-06:00
17. WJR Race (Lil Switz SL)
object(DateTime)#1228 (3) {
["date"]=>
string(19) "2015-02-06 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-02-06T18:00:00-06:00
18. WJR Race (Lakers GS, Kombi)
object(DateTime)#1231 (3) {
["date"]=>
string(19) "2015-01-30 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-01-30T18:00:00-06:00
19. WJR Race (AV SL)
object(DateTime)#1234 (3) {
["date"]=>
string(19) "2015-01-23 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-01-23T18:00:00-06:00
20. WJR Race (HH GS)
object(DateTime)#1237 (3) {
["date"]=>
string(19) "2015-01-16 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-01-16T18:00:00-06:00
21. WJR Race (AUS SL)
object(DateTime)#1240 (3) {
["date"]=>
string(19) "2015-01-09 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-01-09T18:00:00-06:00
22. JT Hilligoss Memorial Race
object(DateTime)#1243 (3) {
["date"]=>
string(19) "2014-12-19 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-19T18:00:00-06:00
23. WJR Race (SUN GS)
object(DateTime)#1246 (3) {
["date"]=>
string(19) "2015-01-02 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2015-01-02T18:00:00-06:00
24. WILLSKI Early Camp #1
object(DateTime)#1249 (3) {
["date"]=>
string(19) "2014-10-22 19:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-10-22T19:00:00-05:00
25. Lakers Opening Pot Luck Dinner
object(DateTime)#1253 (3) {
["date"]=>
string(19) "2014-10-15 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-10-15T18:00:00-05:00
26. Lakers Training (Opening Weekend, Devils Head)
object(DateTime)#1256 (3) {
["date"]=>
string(19) "2014-12-13 08:30:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-13T08:30:00-06:00
27. WILLSKI WC Camp (8th Annual)
object(DateTime)#1258 (3) {
["date"]=>
string(19) "2014-12-02 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-12-02T18:00:00-06:00
28. WILLSKI Early Camp #3 (Masters)
object(DateTime)#1261 (3) {
["date"]=>
string(19) "2014-11-04 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-11-04T18:00:00-06:00
29. WILLSKI Early Camp#2
object(DateTime)#1264 (3) {
["date"]=>
string(19) "2014-10-28 19:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2014-10-28T19:00:00-05:00
30. Awards Banquet
object(DateTime)#1268 (3) {
["date"]=>
string(19) "2011-04-02 17:30:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2011-04-02T17:30:00-05:00
31. K13 SL Camp
object(DateTime)#1271 (3) {
["date"]=>
string(19) "2011-01-24 09:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2011-01-24T09:00:00-06:00
32. WJR Race (SL all ages)
object(DateTime)#1273 (3) {
["date"]=>
string(19) "2011-01-21 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2011-01-21T18:00:00-06:00
33. Lakers Practice (SL all ages)
object(DateTime)#1276 (3) {
["date"]=>
string(19) "2011-01-22 18:00:00"
["timezone_type"]=>
int(3)
["timezone"]=>
string(15) "America/Chicago"
}
2011-01-22T18:00:00-06:00
To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/7a1c00a5-871f-461c-b1ac-5c056f5037a2%40googlegroups.com.To unsubscribe from this group and all its topics, send an email to sabredav-discu...@googlegroups.com.
Hi Evert,My display_errors is on in php configuration file, my screen get dimmed and don't load anything, i need to restart my browser
$splitter->next() function is not available anymore in the ICalendar or VCard, it have changed to$splitter->getNext(), old doc confused me a lotSplitting export files
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Now i have concerned only with DTSTART and DTEND datetime object, these are two things thats why i want to use sabre/object.
if i import basic.ics file in the google calendar, the DTSTART and DTEND are not same as i have parsed basic.ics file using sabre/vobject Icalendar.Below is parsed data, i just print out SUMMARY, DTSTART(DateTime object) and DTSTART(in W3C format).
Also there are some VEVENT with DTSTART having not time but only date, your parser include 00:00:00 with them, it seam event will start 12:00 AM or PM.
i have attached my test.php file you can replace with test.php(roor directory) in the zip file, zip file i had sent you earlier few days.
can you please just import basic.ics file to your google calendar and and can matched the DTSTART object parsed through sabre/vobject?
Or
can you please provide some other solution using sabre/vobject so that they should be same?
$dateTime = $vevent->DTSTART->getDateTime();
echo $dateTime->format('Y-m-d');
$vevent->DTSTART->hasTime()