Code Search for Developers
 
 
  

test_ical_import.php from Group-Office groupware at Krugle


Show test_ical_import.php syntax highlighted

<?php
require('../../Group-Office.php');

require_once ($GO_MODULES->modules['calendar']['class_path']."calendar.class.inc");
require_once ($GO_MODULES->modules['calendar']['class_path']."ical2array.class.inc");
$ical = new ical2array();
$cal = new calendar();

$vcalendar = $ical->parse_file('vcal.icf');
//var_dump($vcalendar);

while($object = array_shift($vcalendar[0]['objects']))
{
	if($object['type'] == 'VEVENT' || $object['type'] == 'VTODO' )
	{
		var_dump($object);
		$event = $cal->get_event_from_ical_object($object);
		
		echo date('Ymd G:i', $event['start_time']);
		
		var_dump($event);
	}
}




See more files for this project here

Group-Office groupware

Group-Office is a powerfull modular Internet/Intranet application framework. It features calendaring, project management, e-mail, tasks, addressbook, file management.

Project homepage: http://sourceforge.net/projects/group-office
Programming language(s): JavaScript,Pascal,PHP
License: other

  195.inc
  202.inc
  213.inc
  216.inc
  218.inc
  alias.sh
  check_links.php
  clean_events.php
  convert_links.php
  createmodule.php
  generatecode.php
  get_new_acl.php
  grant_all_to_admins.php
  reset_db_sequence.php
  rm_duplicates.php
  test_ical_import.php
  test_update_script.php
  test_vcard_export.php
  test_vcard_import.php
  update_shares.php
  vcal.icf
  vcard.vcf