PHP Classes

File: example_event.php

Recommend this page to a friend!
  Classes of Thiago Brito   iCal Maker   example_event.php   Download  
File: example_event.php
Role: Example script
Content type: text/plain
Description: An example of how to add an event into the iCal
Class: iCal Maker
Generate calendars in iCal format
Author: By
Last change:
Date: 17 years ago
Size: 1,019 bytes


Class file image Download


$ical = new Icalendar_Event();

$ical->setProdid('ITSoft |');
$ical->setCalDesc('Sistema ITSoft');

$dtstart = $ical->getDtstart();

$event = array();
$event['DTSTAMP'] = $dtstart;
$event['ORGANIZER'] = 'ITSoft -';
$event['DATESTART'] = date('Ymd');
$event['HOURSTART'] = date('Hmi');
$event['DATEEND'] = date('Ymd');
$event['HOUREND'] = date('Hmi');
$event['UID'] = '128';
$event['CREATED'] = $ical->dateBuilder(date('Ymd'), date('Hmi'));
$event['SUMMARY'] = 'Easy iCalendar';
$event['DESCRIPTION'] = 'The best Class Calendar ever seen before!';
$event['LAST-MODIFIED'] = $ical->dateBuilder(date('Ymd'), date('Hmi'));
$event['LOCATION'] = 'Lisbon';
$event['SEQUENCE'] = 1;
$event['TRANSP'] = 'OPAQUE';
$event['STATUS'] = 'CONFIRMED';


// $ical->save();