Sitellite Application Framework
Class Tree         Index         All Elements

Class: vCalEvent

Source Location: Program_Root/Date/vCalendar/vCalEvent.php

Class Overview


vCalEvent contains individual events for the vCal package.


Author(s)

Version

  • 1.0, 2002-08-28, $Id: vCalEvent.php,v 1.2 2005/07/06 15:30:56 lux Exp $

Copyright

  • Copyright (C) 2001-2003, Simian Systems Inc.

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 67]
vCalEvent contains individual events for the vCal package.


1 <?php
2
3 $cal = new vCal ();
4
5 $cal->addProperty ('VERSION', '2.0');
6 $cal->addProperty ('PRODID', '-//Simian Systems//NONSGML Sitellite Application Framework//EN');
7
8 $event =& $cal->addEvent ('VEVENT');
9
10 $event->addProperty ('UID', 54321);
11 $event->addProperty ('ORGANIZER', 'MAILTO:bananaman@simian.ca');
12 $prop =& $event->addProperty ('ATTENDEE', 'MAILTO:bananaman@simian.ca');
13 $prop->addParameter ('RSVP', 'TRUE');
14
15 // start time is now
16 $event->addProperty ('DTSTART', date ('Ymd\THis\Z'));
17
18 // end time is the same time tomorrow
19 $event->addProperty ('DTEND', date ('Ymd\THis\Z', time () + 86400));
20
21 $event->addProperty ('SUMMARY', 'Party time!');
22 $event->addProperty ('LOCATION', 'My place');
23
24 echo $cal->write ();
25
26 ? >




Tags:

access:  public
version:  1.0, 2002-08-28, $Id: vCalEvent.php,v 1.2 2005/07/06 15:30:56 lux Exp $
license:  http://www.sitellite.org/index/license
copyright:  Copyright (C) 2001-2003, Simian Systems Inc.
author:  John Luxford <mailto:lux@simian.ca>


[ Top ]


Class Variables

$properties = array ()

[line 84]

List of properties in this event. All properties are vCalProperty objects.



Tags:

access:  public

Type:   mixed


[ Top ]

$type =

[line 75]

The type of event. Can be any of the valid vCalendar event types.



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor vCalEvent [line 94]

vCalEvent vCalEvent( [string $type = 'VEVENT'], [array $properties = array ()])

Constructor Method.



Tags:

access:  public


Parameters:

string   $type  
array   $properties  

[ Top ]

method addProperty [line 110]

object reference &addProperty( string $name, string $value, [array $parameters = array ()])

Adds a property to the list. Returns a reference to the new property object. The $name can be any valid vCalendar property.



Tags:

access:  public


Parameters:

string   $name  
string   $value  
array   $parameters  

[ Top ]

method write [line 124]

string write( )

Writes the event portion of a message out of the current object.



Tags:

access:  public


[ Top ]


Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:20:08 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2