Login   Register  
PHP Classes
elePHPant
Icontem

File: example_journal.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Thiago Brito  >  iCal Maker  >  example_journal.php  >  Download  
File: example_journal.php
Role: Example script
Content type: text/plain
Description: An example of how to add an journal into the iCal
Class: iCal Maker
Generate calendars in iCal format
Author: By
Last change: Alter description
Date: 2007-01-05 16:38
Size: 640 bytes
 

Contents

Class file image Download
<?php

include_once('./library/Icalendar/Journal.php');

$ical = new Icalendar_Journal();

$ical->setProdid('ITSoft | www.itsoft.com.pt');
$ical->setCalName('ITSoft');
$ical->setCalDesc('Sistema ITSoft');

$dtstart $ical->getDtstart();

$journal = array();
$journal['DTSTAMP']     = $dtstart;
$journal['ORGANIZER']   = 'ITSoft - tbrito78@hotmail.com';
$journal['UID']         = '129';
$journal['CATEGORY']    = 'iCalendar';
$journal['DESCRIPTION'] = 'The best Class Calendar ever seen before!';
$journal['CLASS']       = '';

$ical->setJournal($journal);

$ical->render();
$ical->display();
// $ical->save();

?>