Hi,
This code (as in example folder):
$icalfeed = 'myGoogleCalendarPrivateICSUrl';
$icalfeed = file_get_contents($icalfile);
$icalobj = new ZCiCal($icalfeed);
echo "Number of events found: " . $icalobj->countEvents() . "\n";
$ecount = 0;
// read back icalendar data that was just parsed
if(isset($icalobj->tree->child))
{
foreach($icalobj->tree->child as $node)
{
if($node->getName() == "VEVENT")
{
$ecount++;
echo "<br /><br />Event $ecount:\n";
foreach($node->data as $key => $value)
{
if(is_array($value))
{
for($i = 0; $i < count($value); $i++)
{
$p = $value[$i]->getParameters();
echo " $key: " . $value[$i]->getValues() . "\n";
}
}
else
{
echo " $key: " . $value->getValues() . "\n";
}
}
}
}
}
Produces this error:
Error Object
(
[message:protected] => Call to a member function getParameters() on array
[string:Error:private] =>
[code:protected] => 0
[file:protected] => /test_scripts/cal.php
[line:protected] => 31
[trace:Error:private] => Array
(
)
[previous:Error:private] =>
)
Please help.