"latp", "url" => $url); //var_dump($url); $v = new vcalendar($config); $v->parse(); while ($comp = $v->getComponent()) { echo "
"; /*date de début*/ $dtstart_array = $comp->getProperty("dtstart", 1, true); $dtstart = $dtstart_array["value"]; $startDate = "{$dtstart["year"]}-{$dtstart["month"]}-{$dtstart["day"]}"; echo "start: ", $startDate; if (!in_array("DATE", $dtstart_array["params"])) { $startTime = "{$dtstart["hour"]}:{$dtstart["min"]}:{$dtstart["sec"]}"; echo "T", $startTime; } echo "\n"; /*date de fin*/ $dtend_array = $comp->getProperty("dtend", 1, true); $dtend = $dtend_array["value"]; $endDate = "{$dtend["year"]}-{$dtend["month"]}-{$dtend["day"]}"; echo "end: ", $endDate; if (!in_array("DATE", $dtend_array["params"])) { $endTime = "{$dtend["hour"]}:{$dtend["min"]}:{$dtend["sec"]}"; echo "T", $endTime; } echo "\n"; /*attendee*/ $attendee = $comp->getProperty("attendee"); echo "attendee : ", str_replace('MAILTO:', '', $attendee)."
"; /*summary*/ $summary_array = $comp->getProperty("summary", 1, true); echo "summary : ", str_replace('SUMMARY:', '', $summary_array["value"]), "\n"; /*categorie*/ $categories = $comp->getProperty("categories"); echo "categories : ", $categories."
"; echo "
"; } //return $url; } ?>