Login   Register  
PHP Classes
elePHPant
Icontem

File: example_todo.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_todo.php  >  Download  
File: example_todo.php
Role: Example script
Content type: text/plain
Description: An example of how to add a todo into the iCal
Class: iCal Maker
Generate calendars in iCal format
Author: By
Last change:
Date: 7 years ago
Size: 802 bytes
 

Contents

Class file image Download
<?php

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

$ical = new Icalendar_Todo();

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

$dtstart $ical->getDtstart();

$todo = array();
$todo['SEQUENCE']  = '0';
$todo['UID']       = '14';
$todo['DTSTAMP']   = $ical->dateBuilder(date('Ymd'), date('Hmi'));
$todo['ORGANIZER'] = 'Thiago Brito - tbrito78@hotmail.com';
$todo['ATTENDEE']  = '';
$todo['DUE']       = 'DUE';
$todo['STATUS']    = 'CONFIRMED';
$todo['SUMMARY']   = 'TODO - ITSoft';

$alarm = array();
$alarm['ACTION']   = 'action';
$alarm['TRIGGER']  = 'trigger';
$alarm['REPEAT']   = 'NO';
$alarm['DURATION'] = '1h';

$todo['VALARM']    = $alarm;

$ical->setTodo($todo);

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

?>